## Presentation Device Driver Reference for OS/2

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

### GreResurrection - Parameters

hdc (HDC) - input The device context handle.

cbVmem (LONG) - input The number of bytes of video memory that have been damaged (determined by the VIO). The display driver can use this value to determine whether any of its video memory has been destroyed by the application. Some display drivers can ignore this parameter.

pReserved (PULONG) - input A reserved pointer. Must be zero.

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

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

lResult (LONG) - returns Return codes.

On completion, the handling routine must return a LONG value (lResult):

0 Error.
1 The screen has been successfully redrawn.
2 The screen has not been completely redrawn; further action is required from the application.

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