IDirect3DRMViewport::Configure
Reconfigures the origin and dimensions of a viewport.
HRESULT Configure(
LONG lX,
LONG lY,
DWORD dwWidth,
DWORD dwHeight
);
Parameters
lX and lY
New position of the viewport.
dwWidth and dwHeight
New width and height of the viewport.
Return Values
Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.
Remarks
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.