Microsoft Windows CE 3.0  

DDHAL_DDCALLBACKS

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.

The DDHAL_DDCALLBACKSstructure contains the 16 and 32-bit DirectDraw callback functions. This structure is included in the DDHALINFOstructure.

typedef struct _DDHAL_DDCALLBACKS { DWORD
dwSize
;
DWORD
dwFlags
;
LPDDHAL_DESTROYDRIVER
DestroyDriver
;
LPDDHAL_CREATESURFACE
CreateSurface
;
LPDDHAL_SETCOLORKEY
SetColorKey
;
LPDDHAL_SETMODE
SetMode
;
LPDDHAL_WAITFORVERTICALBLANK
WaitForVerticalBlank
;
LPDDHAL_CANCREATESURFACE
CanCreateSurface
;
LPDDHAL_CREATEPALETTE
CreatePalette
;
LPDDHAL_GETSCANLINE
GetScanLine
;
LPDDHAL_SETEXCLUSIVEMODE
SetExclusiveMode
;
LPDDHAL_FLIPTOGDISURFACE
FlipToGDISurface
;
} DDHAL_DDCALLBACKS; 
typedef DDHAL_DDCALLBACKS FAR *LPDDHAL_DDCALLBACKS;

Members

dwSize
Size of the structure. This parameter must be initialized before the structure is used.
dwFlags
Indicates which of the DirectDraw functions are implemented in 32-bit code. One or more of the following flags:
Flag Usage
DDHAL_CB32_CANCREATESURFACE Indicates that the CanCreateSurfacecallback is implemented in 32-bit code.
DDHAL_CB32_CREATEPALETTE Indicates that the CreatePalettecallback is implemented in 32-bit code.
DDHAL_CB32_CREATESURFACE Indicates that the CreateSurfacecallback is implemented in 32-bit code.
DDHAL_CB32_DESTROYDRIVER Indicates that the DestroyDrivercallback is implemented in 32-bit code.
DDHAL_CB32_FLIPTOGDISURFACE Indicates that the FlipToGDISurfacecallback is implemented in 32-bit code.
DDHAL_CB32_GETSCANLINE Indicates that the GetScanLinecallback is implemented in 32-bit code.
DDHAL_CB32_SETEXCLUSIVEMODE Indicates that the SetExclusiveModecallback is implemented in 32-bit code.
DDHAL_CB32_SETMODE Indicates that the SetModecallback is implemented in 32-bit code.
DDHAL_CB32_WAITFORVERTICALBLANK Indicates that the WaitForVerticalBlankcallback is implemented in 32-bit code.
DestroyDriver
Pointer to the driver's implementation of the DestroyDrivercallback.
CreateSurface
Pointer to the driver's implementation of the CreateSurfacecallback.
SetColorKey
This member is obsolete and should not be used.
SetMode
Pointer to the driver's implementation of the SetModecallback.
WaitForVerticalBlank
Pointer to the driver's implementation of the WaitForVerticalBlankcallback.
CanCreateSurface
Pointer to the driver's implementation of the CanCreateSurfacecallback.
CreatePalette
Pointer to the driver's implementation of the CreatePalettecallback.
GetScanLine
Pointer to the driver's implementation of the GetScanLinecallback.
SetExclusiveMode
Pointer to the driver's implementation of the SetExclusiveModecallback.
FlipToGDISurface
Pointer to the driver's implementation of the FlipToGDISurfacecallback.

Remarks

This structure contains the entry points in the display driver that DirectDraw calls. Entries that the display driver does not use should be set to NULL.



 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.