Microsoft DirectX 8.0 (Visual Basic)

Direct3DDevice8.GetInfo

Retrieves information about the rendering device.

object.GetInfo( _ 
    DevInfoID As Long, _ 
    Info As Any, _ 
    Size As Long)

Parts

object
Object expression that resolves to a Direct3DDevice8 object.
DevInfoID
Value used to identify what information will be returned in Info.
Info
A type that receives the specified device information if the call succeeds.
Size
Size of the type at Info, in bytes, as returned by the Len Microsoft® Visual Basic® function.

Error Codes

If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.

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

Remarks

Information returned by this method can pertain to Microsoft® Direct3D® or the underlying device driver. This method makes it possible for drivers to declare specific information types, and corresponding structures, that are not documented in this SDK.

This method executes synchronously, and it can reduce your application's performance when it executes slowly. Do not call this method during scene rendering (between calls to Direct3DDevice8.BeginScene and Direct3DDevice8.EndScene).

This method is intended to be used for performance tracking and debugging during product development (on the debug version of Microsoft DirectX®). It can succeed without retrieving device data. This occurs when the retail version of the DirectX runtime is installed on the host system.