## Presentation Device Driver Reference for OS/2

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

### OS2_PM_DRV_ENABLE: Subfunction 0Ah - CompleteOpenDC - Syntax

Description:

OS2_PM_DRV_ENABLE: CompleteOpenDC is called upon completion of the DevOpenDC process to tell the presentation driver that the device context now has access to the graphics engine.

    #include <os2.h>

    ULONG    ulSubfunction;  /*  0AH. */

    HDC      hdcParam1;

    PLONG    pParam2;        /*  A pointer (pInstance) to the DC instance data. */

    LONG     rc;             /*  Return codes. */

    rc = CompleteOpenDC(ulSubfunction, hdcParam1,

           pParam2);