IDirectDrawPalette::GetEntries
HRESULT GetEntries(DWORD dwFlags, DWORD dwBase,
DWORD dwNumEntries, LPPALETTEENTRY lpEntries );
Queries palette values from a DirectDrawPalette.
·Returns DD_OK if successful, or one of the following error values otherwise:
DDERR_INVALIDOBJECT DDERR_INVALIDPARAMS
dwFlags
This parameter is not used at this time and must be set to 0.
dwBase
Indicates the start of the entries that should be retrieved sequentially.
dwNumEntries
Indicates the number of palette entries lpEntries has room for. The colors of each palette entry will be returned in sequence, from dwStartingEntry through dwCount -1.
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.