IDirect3DRMViewport::Configure
HRESULT Configure(LONG lX, LONG lY, DWORD dwWidth, DWORD dwHeight);
Reconfigures the origin and dimensions of a viewport.
·Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.
lX and lY
New position of the viewport.
dwWidth and dwHeight
New width and height of the viewport.
This method returns D3DRMERR_BADVALUE if lX + dwWidth or lY + dwHeight are greater than the width or height of the device, or if any of lX, lY, dwWidth, or dwHeight is less than zero.