## Presentation Device Driver Reference for OS/2

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

### GreEscape DEVESC_QUERYSIZE - Parameters

hdc (HDC) - input Device context handle.

lEscape (LONG) - input DEVESC_QUERYSIZE escape code.

cInCount (LONG) - input Number of bytes pointed to by pInData.

pInData (PBYTE) - output Pointer to the QUERYSIZE data structure.

Note: pQuerySize->ulSizeNeeded is used as output.

pcOutCount (PLONG) - input A pointer to the number of bytes pointed to by pOutData.

pOutData (PLONG) - input Pointer to the printer driver's job properties.

This should be complete and not missing data or partially sized.

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.

DEV_PROP_BUF_TOO_SMALL Job properties buffer did not have adequate space to contain the proper job properties data. The buffer will not be updated.

DEV_INV_INP_JOBPROPERTIES Invalid job properties were passed in. The driver changed them to default values. This is an error and the item buffer will not be updated.

DEVESC_ERROR Error