PDD_VPORTCB_CANCREATEVIDEOPORT callback function (ddrawint.h)

The DdVideoPortCanCreate callback function determines whether the driver can support a DirectDraw VPE object of the specified description.

Syntax

PDD_VPORTCB_CANCREATEVIDEOPORT PddVportcbCancreatevideoport;

DWORD PddVportcbCancreatevideoport(
  PDD_CANCREATEVPORTDATA unnamedParam1
)
{...}

Parameters

unnamedParam1

Points to a DD_CANCREATEVPORTDATA structure that contains the information necessary for the driver to determine whether the specified DirectDraw VPE object can be supported.

Return value

DdVideoPortCanCreate returns one of the following callback codes:

Remarks

DdVideoPortCanCreate must be implemented in drivers that support VPE.

The driver should check the members of the DDVIDEOPORTDESC structure to which the lpDDVideoPortDesc member of the DD_CANCREATEVPORTDATA structure at lpCanCreateVideoPort points to determine whether the hardware supports the specified type of VPE object.

Requirements

Requirement Value
Target Platform Desktop
Header ddrawint.h (include Winddi.h)

See also

DDVIDEOPORTDESC

DD_CANCREATEVPORTDATA

DdVideoPortCreate