Microsoft DirectX 9.0

IVMRWindowlessControl::GetColorKey

The GetColorKey method retrieves the current source color key value used by the VMR.

Syntax

HRESULT GetColorKey(
  COLORREF*  lpClr
);

Parameters

lpClr

[out]  Pointer to a COLORREF variable that receives the current color key value.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Error Code Description
VFW_E_WRONG_STATE The VMR is not in windowless mode.

See Also