IDirectDrawSurface2

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

IsLost

Restore

Attaching surfaces AddAttachedSurface

DeleteAttachedSurface

EnumAttachedSurfaces

GetAttachedSurface

Blitting Blt

BltBatch

BltFast

Color keys GetColorKey

SetColorKey

Device contexts GetDC

ReleaseDC

Flipping surfaces Flip

Locking surfaces Lock

PageLock

PageUnlock

Unlock

Miscellaneous GetDDInterface

Overlays AddOverlayDirtyRect

EnumOverlayZOrders

GetOverlayPosition

SetOverlayPosition

UpdateOverlay

UpdateOverlayDisplay

UpdateOverlayZOrder

Status GetBltStatus

GetFlipStatus

Surface capabilities GetCaps

Surface clipper GetClipper

SetClipper

Surface description GetPixelFormat

GetSurfaceDesc

Surface palettes GetPalette

SetPalette

The IDirectDrawSurface2 interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods:

AddRef

QueryInterface

Release