Compartilhar via


IVMRWindowlessControl::GetVideoPosition

 
Microsoft DirectShow 9.0

IVMRWindowlessControl::GetVideoPosition

The GetVideoPosition method retrieves the current source and destination rectangles used to display the video.

Syntax

  HRESULT GetVideoPosition(

  
  LPRECT
  
  lpSRCRect
  ,

  
  LPRECT
  
  lpDSTRect

  );

Parameters

lpSRCRect

[out]  Pointer that receives the current source rectangle.

lpDSTRect

[out]  Pointer that receives the current destination rectangle.

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.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also