Platform SDK: DirectX

DirectInputDeviceObjectInstance.GetCollectionNumber

The DirectInputDeviceObjectInstance.GetCollectionNumber method retrieves the number of the HID link collection to which the device object belongs.

object.GetCollectionNumber() As Integer

Parameters

object
Object expression that resolves to a DirectInputDeviceObjectInstance object.

Return Values

If the device is a Human Interface Device and the object belongs to a collection, the method returns the number of the collection.

Error Codes

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