Applications use the methods of the IDirectDrawPalette interface to create DirectDrawPalette objects and work with system-level variables. This section is a reference to the methods of this interface. For a conceptual overview, see Palettes.
The methods of the IDirectDrawPalette interface can be organized into the following groups:
Allocating memory | Initialize |
Palette capabilities | GetCaps |
Palette entries | GetEntries |
SetEntries |
The IDirectDrawPalette interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods:
AddRef | |
QueryInterface | |
Release |
You can use the LPDIRECTDRAWPALETTE data type to declare a variable that contains a pointer to an IDirectDrawPalette interface. The Ddraw.h header file declares these data types with the following code:
typedef struct IDirectDrawPalette FAR *LPDIRECTDRAWPALETTE;