Export (0) Print
Expand All

IMFVideoDisplayControl::SetVideoWindow method

Sets the clipping window for the video.

Syntax


HRESULT SetVideoWindow(
  [in]  HWND hwndVideo
);

Parameters

hwndVideo [in]

Handle to the window where the enhanced video renderer (EVR) will draw the video.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

E_INVALIDARG

hwndVideo does not specify a valid window.

S_FALSE

DWM thumbnails were not enabled/disabled.

 

Remarks

The EVR will not display any video unless the application calls this method with a valid window handle.

For protected content, this method might disable Desktop Window Manager (DWM) thumbnail previews for the window. If thumbnail previews cannot be disabled, the method returns S_FALSE.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Evr.h

Library

Strmiids.lib

See also

IMFVideoDisplayControl
Enhanced Video Renderer
Using the Video Display Controls

 

 

Community Additions

ADD
Show:
© 2014 Microsoft