SLAA453A january 2011 – may 2023
Description
Returns the number of physical USB devices on the system associated with this combination of vid and pid. (These devices may be of type HID or otherwise.) If no devices are connected, it returns zero. If devices are connected, the passed strTrackSerialNumbers structure is populated with the serial numbers corresponding to the physical devices found, and the function returns the total number of serial numbers in the list.
If the returned result is more than one, this means there are multiple physical devices with the combination of vid/pid.
Parameters
WORD vid | 16-bit vendor ID of the device to be found. |
WORD pid | 16-bit product ID of the device to be found. |
struct strTrackSerialNumbers *serialNumList | The structure to contain the list of serial numbers associated with vid/pid. |
The function populates the structure with the serial numbers found. | |
returns | 0: If no physical USB devices with this VID/PID are attached. |
non-0: The number of physical USB devices on the system with this VID/PID. |
Field | Description |
---|---|
DWORD deviceNum | Index number representing the physical USB device. |
char serialNum[SERNUM_LEN]; | String containing the serial number of the detected physical devices. |