TIEPortableDevices.LookupDeviceID
Declaration
function LookupDeviceID(const FriendlyName: WideString): WideString;
Description
Returns the ID of the device with the specified friendly name.
Result is '' if the device is not found.
Example
id := IEFolderMView1.PortableDevices.LookupDeviceID( '\\?\usb#vid_05c6&pid...' );