Microsoft DirectX 8.1 (Visual Basic)

DirectInputDeviceObjectInstance.GetCollectionNumber

Retrieves the number of the HID link collection to which the device object belongs.

object.GetCollectionNumber() As Integer

Parts

object
Resolves to a DirectInputDeviceObjectInstance object.

Return Values

Returns the number of the collection or 0 if the object is not part of an HID.

Error Codes

If the method fails, an error is raised and Err.Number is set.