DdVideoPortDestroy

DdVideoPortDestroy routine

The DdVideoPortDestroy callback function notifies the driver that DirectDraw has destroyed the specified VPE object.

Syntax


PDD_VPORTCB_DESTROYVPORT DdVideoPortDestroy;

DWORD APIENTRY DdVideoPortDestroy(
   PDD_DESTROYVPORTDATA lpDestroyVideoPort
)
{ ... }

Parameters

lpDestroyVideoPort

Points to a DD_DESTROYVPORTDATA structure that contains the information required for the driver to clean up.

Return value

DdVideoPortDestroy returns one of the following callback codes:

DDHAL_DRIVER_HANDLED
DDHAL_DRIVER_NOTHANDLED

Remarks

DdVideoPortDestroy can be optionally implemented in DirectDraw drivers that support VPE.

The driver should free any memory that it allocated and associated with the specified VPE object. This includes freeing any driver-allocated memory accessed through the dwReserved1 and dwReserved2 members of the DD_VIDEOPORT_LOCAL structure. This DD_VIDEOPORT_LOCAL structure is at the lpVideoPort member of the DD_DESTROYVPORTDATA structure at lpDestroyVideoPort.

Requirements

Target platform

Header

Ddrawint.h (include Winddi.h)

See also

DD_DESTROYVPORTDATA
DdVideoPortCreate
DD_VIDEOPORT_LOCAL

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft