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:
lpData
Address of a D3DVIEWPORT structure representing the viewport.