Platform SDK: DirectX |
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:
IUnknown | 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 the data type with the following code:
typedef struct IDirectDrawPalette FAR *LPDIRECTDRAWPALETTE;
Windows NT/2000: Requires Windows NT 4.0 SP3 or later.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in ddraw.h.
Import Library: Use ddraw.lib.