IDirect3DViewport::SetViewport
HRESULT SetViewport(LPD3DVIEWPORT lpData);
Sets 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 that contains the new viewport.