Simulation support:

None. This function is mandatory for all drivers.

Description:

GreGetCodePage returns the current code page. This is the default code page obtained by WinQueryProcessCp during the enabling of the DC (see EnableDeviceContext) or the code page set by GreSetCodePage.

This function must be supported by the presentation driver. GreGetCodePage is called by GpiQueryCP in response to an application requesting the currently selected code page for the device context.

#define INCL_GRE_DEVMISC3
#include <os2.h>

HDC      hdc;        /*  Device context handle. */
PVOID    pInstance;  /*  Pointer to instance data. */
ULONG    lFunction;  /*  High-order WORD=flags; low-order WORD=NGreGetCodePage. */
LONG     rc;         /*  Return Code. */

rc = GreGetCodePage(hdc, pInstance, lFunction);


[Back: GreGetCodePage]
[Next: GreGetCodePage Parameter - hdc]