Hi,
I have two devices with same PID, same VID, same serial number (MY12345678) but different product name. How to access each individually?
The problem is that the DevicePathName is the same for both:
DevicePathName = "\\?\usb#vid_0957&pid_a118#MY123454678#{400b501e-5a37-472d-b4a7-998bf4e9a7cd}"
success = SetupDiGetDeviceInterfaceDetail _
(deviceInfoSet, _
myDeviceInterfaceData, _
detailDataBuffer, _
bufferSize, _
bufferSize, _
IntPtr.Zero)
'Skip over cbsize (4 bytes) to get the address of the devicePathName.
pdevicePathName = New IntPtr(detailDataBuffer.ToInt32 + 4)
'Get the String containing the devicePathName.
DevicePathName = Marshal.PtrToStringAuto(pdevicePathName)