DirectX SDK |
This section contains information about the following structures used with DirectDraw:
Note The memory for all DirectX structures should be initialized to 0 before the structure is used. In addition, all structures that contain a dwSize member should set the member to the size of the structure, in bytes, before the structure is used. The following example performs these tasks on a common structure, DDCAPS:
DDCAPS ddcaps; // Can't use this yet. ZeroMemory(&ddcaps, sizeof(DDCAPS)); ddcaps.dwSize = sizeof(DDCAPS); // Now the structure can be used. . .