## Presentation Device Driver Reference for OS/2

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

### GreEscape DEVESC_SETJOBPROPERTIES - Parameters

hdc (HDC) - input Device context handle.

lEscape (LONG) - input DEVESC_SETJOBPROPERTIES escape code.

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

pInData (PBYTE) - output Pointer to a list of DJP_ITEM data structures.

The end of the list is indicated by a DJP_ITEM data structure that has DJP_ NONE as its ulProperty value.

pcOutCount (PLONG) - input Number of bytes pointed to by pOutData.

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

as returned by SplQueryQueue. On output, the job properties are changed.

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 was too small 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.

DEV_WARNING One or more of the DJP_ITEMs has an error in the lType field.

Valid input for lType is as follows:

DJP_CURRENT The application requests the current value to be changed in the input job properties.

The following are valid output for the lType field:

DJP_CURRENT Unchanged; successful query.

DJP_ERROR_NOT_SUPPORTED The driver does not support the value in the ulProperty field of the DJP_ITEMs data structure.

DEVESC_ERROR_INV_PARMS The value in the ulValue field of the DJP_ITEMs data structure is not valid.

DJP_ERROR_OUT_OF_RANGE The value in ulValue is not in the valid range for the specified property.

DJP_ERROR Error