IOverlay::GetPalette

 
Microsoft DirectShow 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.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also