Compartilhar via


IDirectDraw

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

The methods of the IDirectDraw interface 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 IDirectDraw interface, like all COM interfaces, inherits the IUnknown interface methods.

The IUnknown interface supports the following three methods:

IUnknown

IUnknown::AddRef

 

IUnknown::QueryInterface

 

IUnknown::Release

The IDirectDraw::Initialize method is not supported in Windows Embedded CE.

You can use the LPDIRECTDRAW to declare a variable that contains a pointer to an IDirectDraw interface. The Ddraw.h header file declares this data type with the following 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