IVMRWindowlessControl9 interface

The IVMRWindowlessControl9 interface controls how the Video Mixing Renderer Filter 9 (VMR-9) renders a video stream within a container window.


The IVMRWindowlessControl9 interface has these methods.

Method Description
IVMRWindowlessControl9::DisplayModeChanged The DisplayModeChanged method informs the VMR that a WM_DISPLAYCHANGE message has been received by the application.
IVMRWindowlessControl9::GetAspectRatioMode The GetAspectRatioMode method retrieves the current aspect ratio display mode.
IVMRWindowlessControl9::GetBorderColor The GetBorderColor method retrieves the current border color used by the VMR.
IVMRWindowlessControl9::GetCurrentImage The GetCurrentImage method retrieves a copy of the current image being displayed by the VMR.
IVMRWindowlessControl9::GetMaxIdealVideoSize The GetMaxIdealVideoSize method retrieves the maximum video size that the VMR can display without incurring significant performance or image quality degradation.
IVMRWindowlessControl9::GetMinIdealVideoSize The GetMinIdealVideoSize method retrieves the minimum video size that the VMR can display without incurring significant performance or image quality degradation.
IVMRWindowlessControl9::GetNativeVideoSize The GetNativeVideoSize method retrieves the un-stretched video size and aspect ratio of the video.
IVMRWindowlessControl9::GetVideoPosition The GetVideoPosition method retrieves the current source and destination rectangles used to display the video.
IVMRWindowlessControl9::RepaintVideo The RepaintVideo method repaints the current video frame.
IVMRWindowlessControl9::SetAspectRatioMode The SetAspectRatioMode method sets the current aspect ratio display mode.
IVMRWindowlessControl9::SetBorderColor The SetBorderColor method sets the border color to be used by the VMR.
IVMRWindowlessControl9::SetVideoClippingWindow The SetVideoClippingWindow method specifies the container window that video should be clipped to.
IVMRWindowlessControl9::SetVideoPosition The SetVideoPosition method sets the source and destination rectangles for the video.


The VMR-9 supports this interface in windowless and renderless modes only. In windowed mode, QueryInterface returns E_NOINTERFACE. For more information, see VMR Modes of Operation.

Include DShow.h and D3d9.h before Vmr9.h.


Minimum supported client Windows XP with SP2 [desktop apps only]
Minimum supported server Windows Server 2003 R2 [desktop apps only]
Target Platform Windows
Header vmr9.h

See also

Using the Video Mixing Renderer