## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### GreEscape DEVESC_ENDDOC - Parameters

hdc (HDC) - input Device context handle.

lEscape (LONG) - input DEVESC_ENDDOC escape code.

cInCount (LONG) - input The handling routine ignores this parameter.

pInData (PBYTE) - input The handling routine ignores this parameter.

pcOutCount (PLONG) - input Pointer to size parameter.

On input, this parameter specifies the size of the buffer pointed to by pOutData. On output, it is set to the number of data bytes returned in this buffer. The input value of this parameter is usually 2. On completion, this is set to 0 if no ID is returned in pOutData.

pOutData (PLONG) - input Pointer to data area.

Pointer to a data area in which the Job ID of the spooled print job is returned. Set to NULL if there is no Job ID, for example, when the hardcopy DC is OD_DIRECT.

pInstance (PVOID) - input Pointer to instance data.

lFunction (ULONG) - input High-order WORD=flags; low-order WORD=NGreEscape.

rc (LONG) - returns Return Code.

The handling routine returns:

DEV_OK Successful
DEVESC_NOTIMPLEMENTED Escape not implemented for specified code
DEVESC_ERROR Error