IDirect3DViewport::GetViewport

HRESULT GetViewport(LPD3DVIEWPORT lpData);

Retrieves the viewport registers of the viewport.

·Returns D3D_OK if successful, or an error otherwise, which may be one of the following values:

DDERR_INVALIDOBJECT

DDERR_INVALIDPARAMS

lpData

Address of a D3DVIEWPORT structure representing the viewport.