Table of contents
GDI
TOC
Collapse the table of content
Expand the table of content

COPP Video Miniport Driver Close Template Code

Last Updated: 2/14/2017

This section applies only to Windows Server 2003 SP1 and later, and Windows XP SP2 and later.

Use the following example code to release instances of COPP DirectX VA device objects.

VP_STATUS
IoctlCOPPCloseDevice(
    PHW_DEVICE_EXTENSION pHwDeviceExtension,
    PVIDEO_REQUEST_PACKET pVideoRequestPacket
    )
{
    COPP_IO_InputBuffer* pInBuff = pVideoRequestPacket->InputBuffer;
    COPP_DeviceData* pThis = (COPP_DeviceData*)*pInBuff->ppThis;
     *pInBuff->phr = COPPCloseVideoSession(pThis);
    VideoPortFreePool(pHwDeviceExtension, pThis);
    *pInBuff->ppThis = NULL;
    return NO_ERROR;
}

Send comments about this topic to Microsoft

© 2017 Microsoft