WinQueryCpList
Appearance
This function queries available code pages.
Syntax
WinQueryCpList(hab, ulcount, aulCodepage)
Parameters
- hab (HAB) - Input
- Anchor-block handle.
- ulcount (ULONG) - Input
- Maximum number of code pages returned.
- aulCodepage (PULONG) - Output
- Code page list.
- An array of ulcount elements, that contains a list of code pages available to the program.
- For more information about code pages, see .
- ulTotCount (ULONG) - Returns
- Total number of code pages available.
- 0
- An error occurred
- Other
- Total number of code pages available.
Errors
Possible returns from WinGetLastError:
- PMERR_PARAMETER_OUT_OF_RANGE (0x1003) The value of a parameter was not within the defined valid range for that parameter.
Example Code
#define INCL_WINCOUNTRY #include <OS2.H> #define maxcount 8 HAB hab; ULONG aulCodepage[maxcount]; ULONG ulTotalCount; ulTotalCount = WinQueryCpList(hab, (ULONG)maxcount, (PULONG) aulCodepage);