IMixerPinConfig::GetRelativePosition method (mpconfig.h)
[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The GetRelativePosition
method retrieves the position of the stream in the display window.
Syntax
HRESULT GetRelativePosition(
[out] DWORD *pdwLeft,
[out] DWORD *pdwTop,
[out] DWORD *pdwRight,
[out] DWORD *pdwBottom
);
Parameters
[out] pdwLeft
Pointer to a value indicating the x-coordinate in the top-left corner of the display window.
[out] pdwTop
Pointer to a value indicating the y-coordinate in the top-left corner of the display window.
[out] pdwRight
Pointer to a value indicating the x-coordinate in the bottom-right corner of the display window.
[out] pdwBottom
Pointer to a value indicating the y-coordinate in the bottom-right corner of the display window.
Return value
Returns an HRESULT value. Possible values include the following:
Return code | Description |
---|---|
|
Coordinates not in the {0, 0, 10,000, 10,000} range. |
|
Success. |
Remarks
This method assumes window coordinates of {0, 0, 10,000, 10,000}. If the video stream is being rendered in the bottom right quarter of the display window, this method would return {5,000, 5,000, 10,000, 10,000}.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | mpconfig.h |
Library | Strmiids.lib |