IBasicVideo::GetDestinationPosition method (control.h)

The GetDestinationPosition method retrieves the position of the destination rectangle.

Syntax

HRESULT GetDestinationPosition(
  [out] long *pLeft,
  [out] long *pTop,
  [out] long *pWidth,
  [out] long *pHeight
);

Parameters

[out] pLeft

Pointer to a variable that receives the x-coordinate, in pixels.

[out] pTop

Pointer to a variable that receives the y-coordinate, in pixels.

[out] pWidth

Pointer to a variable that receives the width, in pixels.

[out] pHeight

Pointer to a variable that receives the height, in pixels.

Return value

Returns an HRESULT value.

Remarks

This method has the same effect as individually calling the IBasicVideo::get_DestinationLeft, IBasicVideo::get_DestinationTop, IBasicVideo::get_DestinationWidth, and IBasicVideo::get_DestinationHeight methods.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header control.h (include Dshow.h)
Library Strmiids.lib

See also

Error and Success Codes

IBasicVideo Interface