Applications use the methods of the IDirectDraw2 interface to create DirectDraw objects and work with system-level variables. This section is a reference to the methods of this interface. For a conceptual overview, see DirectDraw Objects.
The methods of the IDirectDraw2 interface can be organized into the following groups:
Allocating memory Compact
Creating objects CreateClipper
Device capabilities GetCaps
Display modes EnumDisplayModes
Display status GetScanLine
Miscellaneous GetAvailableVidMem
Setting behavior SetCooperativeLevel
Surfaces DuplicateSurface
The IDirectDraw2 interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods: