win12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WinQueryCpList (1.2)
Function Group                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINCOUNTRY
 
USHORT WinQueryCpList(hab, ccpMax, pacp)
HAB hab;          /* handle of the anchor block               */
USHORT ccpMax;    /* maximum number of code pages to retrieve */
PUSHORT pacp;     /* address of array to receive code pages   */
 
The WinQueryCpList function obtains available code pages.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hab        Identifies an anchor block.
 
ccpMax     Specifies the maximum number of code pages that will be
           returned.
 
pacp       Points to an array that will receive the available code pages. It
           will include all code pages available to the Gpi and Vio
           functions, including any EBCDIC ones. This list is a superset of
           those code pages available to the WinSetCp function and the Dos
           functions.
 
Return Value
 
The return value is the total number of code pages in the system.
 
See Also
 
WinQueryCp, WinSetCp