## Presentation Device Driver Reference for OS/2

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

### GreSaveScreenBits - Parameters

hdc (HDC) - input The device context handle.

prclRect (PRECTL) - input A pointer to a screen rectangle defined in screen coordinates.

pInstance (PVOID) - input A pointer to instance data.

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

rc (ULONG) - returns Return codes.

On completion, the handling routine must return a handle to the saved bits (hsbBits) or 0 to indicate that the bits were not saved or that 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_DEV_FUNC_NOT_INSTALLED
PMERR_INV_HDC