Microsoft DirectX 8.1 (Visual Basic)

DirectInputDevice8.GetObjectInfo

Retrieves information about a device object such as a button or axis.

object.GetObjectInfo( _ 
  obj As Long, _
  how As CONST_DIPHFLAGS) _
  As DirectInputDeviceObjectInstance

Parts

object
Resolves to a DirectInputDevice8 object.
obj
Value that identifies the object whose information will be retrieved. The interpretation of this parameter depends on the value specified in the how parameter.
how
Value specifying how the obj parameter should be interpreted. This value can be one of the constants of the CONST_DIPHFLAGS enumeration.

Return Values

Returns a DirectInputDeviceObjectInstance object whose methods can be used to retrieve information about the object.

Error Codes

If the method fails, an error is raised and Err.Number may be one of the following error codes.

DIERR_INVALIDPARAM
DIERR_OBJECTNOTFOUND