IOverlay::GetPalette method (strmif.h)

The GetPalette method retrieves the current system palette.

Syntax

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

Parameters

pdwColors

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

ppPalette

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.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header strmif.h (include Dshow.h)
Library Strmiids.lib

See also

Error and Success Codes

IOverlay Interface