Simulation support:
This function is mandatory for hardcopy drivers and must be implemented in order to have a valid OS/2 hardcopy driver. For other drivers, it is simulated by a handling routine in the graphics engine.
Description:
GreEscape DEVESC_ENDDOC ends the current document.
Note: DEVESC_ENDDOC is mandatory at the API when writing PM_Q_STD data to an OD_QUEUED device.
#define INCL_GRE_DEVICE
#include <os2.h>
HDC hdc; /* Device context handle. */
LONG lEscape; /* DEVESC_ENDDOC escape code. */
LONG cInCount; /* The handling routine ignores this parameter. */
PBYTE pInData; /* The handling routine ignores this parameter. */
PLONG pcOutCount; /* Pointer to size parameter. */
PLONG pOutData; /* Pointer to data area. */
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);