Microsoft DirectX 9.0

IVMRWindowlessControl::SetVideoClippingWindow

The SetVideoClippingWindow method specifies the container window that video should be clipped to.

Syntax

HRESULT SetVideoClippingWindow(
  HWND  hwnd
);

Parameters

hwnd

[in]  Specifies the window to which the video should be clipped.

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