Simulation support:

This function is mandatory for hardcopy 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_STARTDOC_WPROP will reset the device context information and presentation space information to be based on the new job properties that are passed in. This should be equivalent to the result of a new DevOpenDC with the new job properties.

#define INCL_DEV
#define INCL_DEVDJP
#include <os2.h>

HDC      hdc;         /*  Device context handle. */
LONG     lEscape;     /*  DEVESC_STARTDOC_WPROP escape code. */
LONG     cInCount;    /*  Number of bytes pointed to by pInData. */
PBYTE    pInData;     /*  The title of the document (same as GreEscape DEVESC_STARTDOC). */
PLONG    pcOutCount;  /*  Pointer to the number of bytes pointed to by pOutData. */
PLONG    pOutData;    /*  Pointer to the printer driver's job properties as returned by SplQueryQueue. */
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);


[Back: GreEscape DEVESC_STARTDOC_WPROP]
[Next: GreEscape DEVESC_STARTDOC_WPROP Parameter - hdc]