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_QUERYSIZE queries the size of memory (in bytes) required for the corresponding list of specified job property types.
Refer to Dynamic Job Properties for related information.
#define INCL_DEV #define INCL_DEVDJP #include <os2.h> HDC hdc; /* Device context handle. */ LONG lEscape; /* DEVESC_QUERYSIZE escape code. */ LONG cInCount; /* Number of bytes pointed to by pInData. */ PBYTE pInData; /* Pointer to the QUERYSIZE data structure. */ PLONG pcOutCount; /* A pointer to the number of bytes pointed to by pOutData. */ PLONG pOutData; /* Pointer to the printer driver's job properties. */ 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);