Applications use the methods of the IDDVideoPortContainer interface to create and manipulate DirectDrawVideoPort objects. You retrieve a pointer to this interface by calling the IUnknown::QueryInterface method of a DirectDraw object, specifying the IID_IDDVideoPortContainer reference identifier.
The methods of the IDDVideoPortContainer interface can be organized into the following groups:
Creating objects | CreateVideoPort |
Video ports | EnumVideoPorts |
QueryVideoPortStatus | |
Connections | GetVideoPortConnectInfo |
The IDDVideoPortContainer interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods:
IUnknown | AddRef |
QueryInterface | |
Release |
You can use the LPDDVIDEOPORTCONTAINER data type to declare a variable that contains a pointer to an IDDVideoPortContainer interface. The Dvp.h header file declares the LPDDVIDEOPORTCONTAINER with the following code:
typedef struct IDDVideoPortContainer FAR *LPDDVIDEOPORTCONTAINER;
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in dvp.h.
Import Library: Use ddraw.lib.