IDirectDrawPalette::SetEntries
HRESULT SetEntries(DWORD dwFlags, DWORD dwStartingEntry,
DWORD dwCount, LPPALETTEENTRY lpEntries);
Changes entries in a DirectDrawPalette object immediately.
·Returns DD_OK if successful, or one of the following error values otherwise:
dwFlags
This parameter is currently not used and must be set to 0.
dwStartingEntry
First entry to be set.
dwCount
Number of palette entries to be changed.
lpEntries
Address of the palette entries. The palette entries are 1 byte each if the DDPCAPS_8BITENTRIES flag is set and 4 bytes otherwise. Each field is a color description.
The palette must have been attached to a surface by using the IDirectDrawSurface2::SetPalette method before IDirectDrawPalette::SetEntries can be used.