IOverlay::GetPalette method

The GetPalette method retrieves the current system palette.

Syntax


HRESULT GetPalette(
  [out] DWORD        *pdwColors,
  [out] PALETTEENTRY **ppPalette
);

Parameters

pdwColors [out]

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

ppPalette [out]

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]

Header

Strmif.h (include Dshow.h)

Library

Strmiids.lib

See also

Error and Success Codes
IOverlay Interface

 

 

Show: