Simulation support:
This function is mandatory for display drivers. For other drivers, it is simulated by a handling routine in the graphics engine.
Description:
GreEscape DEVESC_QUERYVIOCELLSIZES obtains the details of the VIO cell sizes supported by the presentation driver.
#define INCL_GRE_DEVICE
#include <os2.h>
HDC hdc; /* Device context handle. */
LONG lEscape; /* DEVESC_QUERYVIOCELLSIZES escape code. */
LONG cInCount; /* The handling routine ignores this parameter. */
PBYTE pInData; /* The handling routine ignores this parameter. */
PLONG pcOutCount; /* Pointer to the number of bytes pointed to by pOutData. */
PLONG pOutData; /* Pointer to the address of the data returned. */
PVOID pInstance; /* Pointer to instance data. */
ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreEscape. */
LONG rc; /* Return Code. */
rc = GreEscape(hdc, lEscape, cInCount, pInData,
pcOutCount, pOutData, pInstance, lFunction);