IDirectDrawPalette::SetEntries

HRESULT SetEntries(DWORD dwFlags,

DWORD dwStartingEntry, DWORD dwCount,

LPPALETTEENTRY lpEntries);

Changes entries in a DirectDrawPalette immediately. The palette must be attached to a surface using the IDirectDrawSurface::SetPalette method before IDirectDrawPalette::SetEntries can be used.

·Returns DD_OK if successful, or one of the following error values otherwise:

DDERR_INVALIDOBJECT DDERR_INVALIDPARAMS

DDERR_NOPALETTEATTACHED DDERR_NOTPALETTIZED

DDERR_UNSUPPORTED

dwFlags

This parameter is not used at this time and must be set to 0.

dwStartingEntry

Specifies the first entry to be set.

dwCount

Specifies the number of palette entries to be changed.

lpEntries

Address of the palette entries. The palette entries are one byte each if the DDPCAPS_8BITENTRIES flag is set and four bytes otherwise. Each field is a color description.