Description
GreGetHandle returns the handle or variable (stored in the DC corresponding to iIndex) previously set by GreSetHandle.
This function is supported by the graphics engine.
#define INCL_GRE_DCS
#include <os2.h>
HDC hdc; /* Device context handle. */
ULONG iIndex; /* Index value. */
PVOID pInstance; /* Pointer to instance data. */
ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreGetHandle. */
LONG rc; /* Return code. */
rc = GreGetHandle(hdc, iIndex, pInstance,
lFunction);