Microsoft DirectX 9.0


This topic applies to Windows XP only.

The get_MaintainAspectRatio method queries whether the Video Control maintains the aspect ratio of the source video.


HRESULT get_MaintainAspectRatio(
  VARIANT_BOOL*  pCurrentValue



[out]  Pointer to a variable of type VARIANT_BOOL that receives one of the following values.

Value Description
VARIANT_TRUE The Video Control will maintain the aspect ratio of the source video.
VARIANT_FALSE The Video Control will stretch the video to fill the window.

Return Values

Returns an HRESULT value. Possible values include the following.

Value Description
S_OK Success.
E_POINTER NULL pointer argument.

See Also