## Presentation Device Driver Reference for OS/2

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

### GreEscape DEVESC_NEXTBAND - Parameters

hdc (HDC) - input Device context handle.

lEscape (LONG) - input DEVESC_NEXTBAND escape code.

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

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

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

On return, this is updated to the number of bytes actually returned.

pOutData (PLONG) - input Pointer to BANDRECT structure.

Points to where the device coordinates of the next band are returned:

xLeft X-coordinate of the lower-left corner of the rectangular band
yBottom Y-coordinate of the lower-left corner of the rectangular band
xRight X-coordinate of the top-right corner of the rectangular band
yTop Y-coordinate of the top-right corner of the rectangular band

An empty rectangle (xLeft=xRight or yTop=yBottom) marks the end of the banding operation.

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