Simulation support:
This function is mandatory for all drivers and must be implemented in order to have a valid OS/2 hardcopy driver.
Description:
GreEscape DEVESC_QUERYESCSUPPORT queries whether a particular escape code is implemented by the presentation driver. The presentation driver returns DEV_OK if the specified escape is supported.
Refer to Dynamic Job Properties for related information
#define INCL_GRE_DEVICE
#include <os2.h>
HDC hdc; /* Device context handle. */
LONG lEscape; /* DEVESC_QUERYESCSUPPORT escape code. */
LONG cInCount; /* Number of bytes pointed to by pInData. */
PBYTE pInData; /* Pointer to an escape code value specifying the escape function to be checked. */
PLONG pcOutCount; /* The handling routine ignores this parameter. */
PLONG pOutData; /* The handling routine ignores this parameter. */
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);