Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

Applications use the methods of the IDirectDrawinterface to create DirectDrawobjects and work with system-level variables. For a conceptual overview, see DirectDraw in the Graphics and Multimedia guide.

The methods of the IDirectDrawinterface are organized into the following groups:

Cooperative levels

IDirectDraw::SetCooperativeLevel

 

IDirectDraw::TestCooperativeLevel

Creating objects

IDirectDraw::CreateClipper

 

IDirectDraw::CreateSurface

Device capabilities

IDirectDraw::GetCaps

 

IDirectDraw::GetDeviceIdentifier

Display modes

IDirectDraw::EnumDisplayModes

 

IDirectDraw::GetDisplayMode

 

IDirectDraw::GetMonitorFrequency

 

IDirectDraw::RestoreDisplayMode

 

IDirectDraw::SetDisplayMode

 

IDirectDraw::WaitForVerticalBlank

Display status

IDirectDraw::GetScanLine

 

IDirectDraw::GetVerticalBlankStatus

Miscellaneous

IDirectDraw::GetAvailableVidMem

 

IDirectDraw::GetFourCCCodes

Surface management

IDirectDraw::EnumSurfaces

 

IDirectDraw::FlipToGDISurface

 

IDirectDraw::GetGDISurface

 

IDirectDraw::GetSurfaceFromDC

 

IDirectDraw::RestoreAllSurfaces

The IDirectDrawinterface, like all COM interfaces, inherits the IUnknowninterface methods.

The IUnknowninterface supports the following three methods:

IUnknown

IUnknown::AddRef

 

IUnknown::QueryInterface

 

IUnknown::Release

The IDirectDraw::Initializemethod is not supported in Windows Embedded CE.

You can use the LPDIRECTDRAWto declare a variable that contains a pointer to an IDirectDrawinterface. The Ddraw.h header file declares this data type with the following code.

Copy Code
typedef struct IDirectDraw*LPDIRECTDRAW;

Requirements

Header ddraw.h
Library ddraw.lib
Windows Embedded CE Windows Embedded CE 6.0 and later
Windows Mobile Pocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later