## Presentation Device Driver Reference for OS/2

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

### GreSetScreenBits - Parameters

hdc (HDC) - input Any valid, direct (screen) device context handle.

The valid handle must have selected into it a bit map the same size as the screen from which the source data was read.

pBuffer (PBYTE) - input Pointer to source (compressed) data.

Pointer to the memory buffer where the source data is located.

cBytes (ULONG) - input Length of the memory buffer pointed to by pBuffer.

This must be the same value as that returned by the corresponding GreGetScreenBits call.

hrgn (HRGN) - input A valid region handle.

The area that is updated in the memory bit map by this call is added to the region identified by this handle.

pdcArg (PDC) - input Pointer to instance data.

FunN (ULONG) - input High-order word=Flags; Low-order word= NGreSetScreenBits.

rc (LONG) - returns This function returns one of the following:

1 The supplied data is successfully decompressed in the memory bit map.

0 An error occurred.

Possible Errors Detected: When an error is detected, the handling routine must call WinSetErrorInfo to post the condition. Error codes for conditions that the handling routine is expected to check include:

PMERR_BITMAP_NOT_SELECTED
PMERR_INCOMPAT_COLOR_FORMAT
PMERR_INV_DC_TYPE
PMERR_INV_IMAGE_DIMENSION
PMERR_INV_IN_AREA
PMERR_INV_IN_PATH
PMERR_INV_LENGTH_OR_COUNT
PMERR_INV_RECT

Refer to the "Error Explanations" section in the Presentation Manager Programming Reference for further explanation.