This method of the Direct3dRMViewport Class retrieves the device associated with a viewport.
public Direct3dRMDevice getDevice();
Returns the Direct3dRMDevice object if successful; otherwise, returns null.