Simulation support:
This function is mandatory for all drivers and must be implemented in order to have a valid OS/2 hardcopy driver. Refer to Dynamic Job Properties for related information.
Description:
GreEscape DEVESC_QUERYJOBPROPERTIES queries the specified job property types and values inside the job properties structure that is passed in. 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_QUERYJOBPROPERTIES escape code. */ LONG cInCount; /* Number of bytes pointed to by pInData. */ PBYTE pInData; /* Pointer to a list of DJP_ITEM data structures. */ PLONG pcOutCount; /* Pointer to the number of bytes pointed to by pOutData. */ PLONG pOutData; /* Pointer to the printer driver's job properties structure. */ 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);