PDD_VPORTCB_DESTROYVPORT callback function (ddrawint.h)
The DdVideoPortDestroy callback function notifies the driver that DirectDraw has destroyed the specified VPE object.
Syntax
PDD_VPORTCB_DESTROYVPORT PddVportcbDestroyvport;
DWORD PddVportcbDestroyvport(
PDD_DESTROYVPORTDATA unnamedParam1
)
{...}
Parameters
unnamedParam1
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:
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
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | ddrawint.h (include Winddi.h) |