## Presentation Device Driver Reference for OS/2

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

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

Description:

In response to OS2_PM_DRV_ENABLE: EnableDeviceContext, the driver reserves the memory it needs to support this instance of a DC and initializes the instance data.

    #include <os2.h>

    ULONG     ulSubfunction;  /*  05h. */

    PULONG    pParam1;

    PLONG     pParam2;        /*  Not used. */

    LONG      rc;             /*  Return codes. */

    rc = EnableDeviceContext(ulSubfunction, pParam1,

           pParam2);