Description
GreSetHandle stores a handle or variable in the device context.
This function is supported by the graphics engine.
#define INCL_GRE_DCS
#include <os2.h>
HDC hdc; /* Device context handle. */
ULONG hHandle; /* Handle to be associated with hdc. */
ULONG iIndex; /* Index value of the handle in the range 0-3. */
PVOID pInstance; /* Pointer to instance data. */
ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreSetHandle. */
BOOL fSuccess; /* Return codes. */
fSuccess = GreSetHandle(hdc, hHandle, iIndex,
pInstance, lFunction);