Purpose
Get the current code page of the client
system.
Syntax
unsigned int CWB_ENTRY cwbNL_GetCodePage(
unsigned long *codePage,
cwbSV_ErrHandle errorHandle);
Parameters
- unsigned long * codePage - output
- Returns the current code page of the client system or the OEM code page
character conversion override value, if one is specified on the Language tab
of the iSeries™ Access Family Properties
dialog.
- cwbSV_ErrHandle errorHandle - output
- Handle to an error object. Any returned messages will be written to this
object. It is created with the cwbSV_CreateErrHandle API.
The messages may be retrieved with the cwbSV_GetErrText API.
If the parameter is set to zero, no messages will be retrievable.
Return Codes
The following list shows common return
values.
- CWB_OK
- Successful completion.
- CWB_INVALID_HANDLE
- Invalid handle.
- CWB_INVALID_POINTER
- NULL passed on output parameter.
- CWB_NOT_ENOUGH_MEMORY
- Insufficient memory.