IDirect3DDevice::AddViewport

HRESULT AddViewport(LPDIRECT3DVIEWPORT lpDirect3DViewport);

Adds the specified viewport to the list of viewport objects associated with the device.

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

DDERR_INVALIDOBJECT

DDERR_INVALIDPARAMS

lpDirect3DViewport

Address of the IDirect3DViewport interface that should be associated with this Direct3DDevice object.