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_SETJOBPROPERTIES writes the the specified job property types and values into 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_SETJOBPROPERTIES escape code. */
LONG cInCount; /* Number of bytes pointed to by pInData. */
PBYTE pInData; /* Pointer to a list of DJP_ITEM data structures. */
PLONG pcOutCount; /* 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);