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. |
Applications use the methods of the IDirectDrawPaletteinterface to create DirectDrawPalette objects and work with system-level variables. This section is a reference to the methods of this interface.
The methods of the IDirectDrawPaletteinterface can be organized into the following groups:
Allocating memory | Initialize |
Palette capabilities | GetCaps |
Palette entries | GetEntries |
SetEntries |
The IDirectDrawPaletteinterface, like all COM interfaces, inherits the IUnknowninterface methods. The IUnknowninterface supports the following three methods:
IUnknown | AddRef |
QueryInterface | |
Release |
You can use the LPDIRECTDRAWPALETTEdata type to declare a variable that contains a pointer to an IDirectDrawPaletteinterface. The Ddraw.h header file declares the data type with the following code:
typedef struct IDirectDrawPalette FAR *LPDIRECTDRAWPALETTE;
Requirements
Runs on | Versions | Declared in | Link to |
---|---|---|---|
Windows CE OS | 2.12 or later. Version 2.12 requires DXPAK 1.0 or later. | ddraw.h | ddraw.lib |