IDirectDrawSurface (Windows Embedded CE 6.0)
1/6/2010
Applications use the methods of the IDirectDrawSurface interface to create DirectDrawSurface objects and work with system-level variables.
IDirectDraw::CreateSurface will return a fully supported IDirectDrawSurface interface pointer.
You cannot obtain the IDirectDrawSurface interface directly from CreateSurface; use the QueryInterface method to retrieve it.
The methods of the IDirectDrawSurface interface can be organized into the following groups:
Allocating memory |
|
|
|
Attaching surfaces |
|
Blitting |
|
|
|
|
|
Color keying |
|
|
|
Device capabilities |
|
Device contexts |
|
|
|
Flipping |
|
|
|
Locking surfaces |
|
|
|
Miscellaneous |
|
Overlays |
|
|
|
|
|
|
|
|
|
Surface clipper |
|
|
|
Surface characteristics |
|
|
|
Surface palettes |
|
|
The IDirectDrawSurface interface, like all COM interfaces, inherits the IUnknown interface methods.
The IUnknown interface supports the following three methods:
IUnknown |
|
|
|
|
You can use the LPDIRECTDRAWSURFACE data type to declare variables that point to various DirectDrawSurface object interfaces.
The Ddraw.h header file declares this data type with the following code.
typedef struct IDirectDrawSurface FAR *LPDIRECTDRAWSURFACE;
Requirements
Header | ddraw.h |
Library | ddraw.lib |
Windows Embedded CE | Windows Embedded CE 6.0 and later |