## Presentation Device Driver Reference for OS/2

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

### OS2_PM_DRV_ENABLE: Subfunction 05h - EnableDeviceContext - Parameters

ulSubfunction (ULONG) - input 05h.

pParam1 (PULONG) - input A pointer to a DENPARAMS structure:

ulStateInfo Value returned by FillPhysicalDeviceBlock.

ulType Type of device context. Defined values are:

OD_QUEUED
OD_DIRECT
OD_INFO
OD_MEMORY

For details, see DevOpenDC in the Presentation Manager Programming Reference.

ulHDC Device context handle.

pParam2 (PLONG) - input Not used.

rc (LONG) - returns Return codes.

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

-1 Error.
other Pointer (pInstance) to the DC instance data.