I can't find how to extract the inserted usb letter.
I have event that listen to usb that inserted, but I need the inserted letter, because I have mulpile usb ports.
void OnDeviceNotifyEvent(object sender, DeviceNotifyEventArgs e)
{
MessageBox.Show(e.ToString());
}
Prints:
[DeviceType:DeviceInterface] [EventType:DeviceArrival] FullName:USB#VID_2CE3&PID_6487#0000000000000000#{a5dcbf10-6530-11d2-901f-00c04fb951ed} Vid:0x2CE3 Pid:0x6487 SerialNumber:0000000000000000 ClassGuid:a5dcbf10-6530-11d2-901f-00c04fb951ed
I'm using LibUsbDotNet.DeviceNotify dll
For example: E:\
inserted