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:

DDERR_INVALIDOBJECT

DDERR_INVALIDPARAMS

lpData

Address of a D3DVIEWPORT structure that contains the new viewport.