Platform SDK: DirectX

Direct3DDevice7.GetCaps

The Direct3DDevice7.GetCaps method retrieves the capabilities of the Direct3D device.

object.GetCaps( _ 
    desc As D3DDEVICEDESC7)

Parameters

object
Object expression that resolves to a Direct3DDevice7 object.
desc
A D3DDEVICEDESC7 type that will contain the hardware features of the device.

Error Codes

If the method fails, an error is raised and Err.Number may be set to one of the following values:

DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS

For information on trapping errors, see the Visual Basic Error Trapping topic.

Remarks

This method does not retrieve the capabilities of the display device. To retrieve this information, use the DirectDraw7.GetCaps method.