Microsoft DirectX 9.0

IOverlay::GetPalette

The GetPalette method retrieves the current system palette.

Syntax

HRESULT GetPalette(
  DWORD *pdwColors,
  PALETTEENTRY **ppPalette
);

Parameters

pdwColors

[out] Pointer to a variable that receives the number of colors present.

ppPalette

[out] Address of a variable that receives a pointer to a PALETTEENTRY structure describing the palette.

Return Value

Returns S_OK if successful. If the method fails, it returns an HRESULT error code.

See Also