Applications use the methods of the IDirectDrawSurface2 interface to create DirectDrawSurface objects and work with system-level variables. This section is a reference to the methods of this interface. For a conceptual overview, see DirectDrawSurface Objects.
The methods of the IDirectDrawSurface2 interface can be organized into the following groups:
Allocating memory Initialize
Attaching surfaces AddAttachedSurface
Blitting Blt
Color keys GetColorKey
Device contexts GetDC
Flipping surfaces Flip
Locking surfaces Lock
Miscellaneous GetDDInterface
Overlays AddOverlayDirtyRect
Status GetBltStatus
Surface capabilities GetCaps
Surface clipper GetClipper
Surface description GetPixelFormat
Surface palettes GetPalette
The IDirectDrawSurface2 interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods: