Allows a process to query its current process code page and the prepared system code pages.

#define INCL_DOSNLS
#include <os2.h>

ULONG     cb;    /*  The length, in bytes, of arCP. */
PULONG    arCP;  /*  The returned data list. */
PULONG    pcCP;
APIRET    ulrc;  /*  Return Code. */

ulrc = DosQueryCp(cb, arCP, pcCP);


[Back] [Next]