Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Initialize the memory for all Microsoft DirectX® structures to 0 before using the structure. In addition, set the member to the size of the structure, in bytes, before using any structure that contains a dwSize member. The following code example shows how to performs these tasks on a common structure, DDCORECAPS.
DDCORECAPS ddcorecaps; // Can't use this yet.
ZeroMemory(&ddcorecaps, sizeof(ddcorecaps));
ddcorecaps.dwSize = sizeof(ddcorecaps);
// Now the structure can be used.
This section contains link to the Microsoft® DirectDraw® hardware abstraction layer (DDHAL) structures.
In This Section
- DDHAL Callback Structures
Provides reference information for DDHAL callback structures. - Color Control Structure
Provides reference information for color control structures. - DirectDraw Structures
Provides reference information for DirectDraw structures. - DirectDrawClipper Structures
Provides reference information for DirectDrawClipper structures. - DirectDrawPalette Structures
Provides reference information for DirectDrawPalette structures. - DirectDrawSurface Structures
Provides reference information for DirectDrawSurface structures. - Display Memory Structures
Provides reference information for display memory structures. - Display Driver Structures
Provides reference information for display driver structures. - Miscellaneous Structures
Provides reference information for miscellaneous structures. - Video Port Structures
Provides reference information for video port structures.
Send Feedback on this topic to the authors