TIEPortableDevices.LookupDeviceFriendlyName
Declaration
function LookupDeviceFriendlyName(const sDeviceID : WideString): WideString;
Description
Returns the friendly name for a device.
The same result could be achieved using:
sFriendlyName := Devices[ DeviceIDToIndex( sDeviceID ) ].FriendlyName;// Custom drawing of a listbox that contains Device IDs
procedure TfrmMain.lbxDevicesDrawItem(Control: TWinControl; Index: Integer; Rect: TRect; State: TOwnerDrawState);
var
sDeviceID: WideString;
begin
sDeviceID := lbxDevices.Items[ Index ];
IEDrawComboListBoxItem(TListBox(Control ), Rect, fPortableDevices.LookUpDeviceFriendlyName( sDeviceID ), imlGlyphs, IMG_DEVICE );
end;
See Also
◼IEDrawComboListBoxItem