Simulation support:
This function is simulated by a handling routine in the graphics engine.
Description
GreGetPageUnits returns the page units for the specified display context. On completion, the structure addressed by pExtent contains the dimensions of the page expressed in the units indicated by the return value of this function.
This function can be hooked by the presentation driver.
#define INCL_GRE_XFORMS #include <os2.h> HDC hdc; /* Device context handle. */ PSIZEL pExtent; /* Pointer to a SIZEL structure where the page dimensions are returned. */ PVOID pInstance; /* Pointer to instance data. */ ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreGetPageUnits. */ ULONG rc; /* Return codes. */ rc = GreGetPageUnits(hdc, pExtent, pInstance, lFunction);