Applications use the methods of the IDDVideoPortContainer interface to create and manipulate DirectDrawVideoPort objects.
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:
| 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;