## Presentation Device Driver Reference for OS/2

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

### OS2_PM_DRV_ENABLE: Subfunction 08h - RestoreDCState - Parameters

ulSubfunction (ULONG) - input 08h.

pParam1 (PULONG) - input A pointer (pInstance) to the DC instance data.

pParam2 (PLONG) - input Identifies which of the saved states are to be restored. Positive numbers indicate the specific state counting from the first saved state, that is, 1 equals the first, 2 the second, and so forth. All saved states following the one being restored are discarded. Preceding states remain saved.

Negative numbers indicate the specific state counting from the last saved state, a value of -2 indicates that the last state is discarded and the state before that is restored.

rc (LONG) - returns Return codes.

The handling routine should return a LONG integer. Valid values are:

0 Successful
-1 Error