Microsoft DirectX 8.1 (C++)

IOverlay::GetVideoPosition

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

Syntax

HRESULT GetVideoPosition(
  RECT *pSourceRect,
  RECT *pDestinationRect
);

Parameters

pSourceRect

[out] Pointer to a RECT structure that receives the bounding video client rectangle.

pDestinationRect

[in] Pointer to the destination video rectangle.

Return Value

Returns S_OK if successful. If the method fails, it returns an HRESULT error code.

See Also