DirectX SDK |
The Direct3DDevice7.GetViewport method retrieves the viewport parameters currently set for the device.
object.GetViewport( _ Viewport As D3DVIEWPORT7)
If the method fails, an error is raised and Err.Number may be set to DDERR_INVALIDPARAMS if the Viewport parameter is invalid.