SLAA453A january 2011 – may 2023
Description
Returns the number of HID interfaces that exist within each physical USB device identified by vid and pid. If no such devices are connected, the function returns zero.
numSerNums is the number of physical devices on the system associated with this VID/PID. This function accomplishes its goal by scanning the Windows HID device list (that is, the logical HID devices registered on the system), counting those associated with this VID/PID, and then dividing it by numSerNums. numSerNums can be found by calling HID_GetSerNums().
A single-interface HID device always causes the value 1 to be returned.
Parameters
UINT vid | 16-bit vendor ID of the device to be found. |
UINT pid | 16-bit product ID of the device to be found. |
DWORD numSerNums | Total number of connected physical devices with this VID/PID |
returns | 0: If no USB devices with this VID/PID are attached. |
non-0: The number of USB devices on the system with this VID/PID |