TIEPortableDevices.Devices
Declaration
property Devices[Index: Integer]: TIEPortableDevice;
Description
An array of all devices connected to the PC. It is filled automatically or can be refreshed by calling
RefreshDevices.
Read-only
Example
// Refresh the list of devices
procedure TfrmMain.RefreshDeviceList();
var
i: Integer;
begin
lbxObjects.Items.Clear();
if fPortableDevices.RefreshDevices = False then
raise Exception.Create( 'Unable to get devices: ' + fPortableDevices.LastError);
lbxDevices.Items.Clear();
for i := 0 to fPortableDevices.DeviceCount - 1 do
lbxDevices.Items.Add( fPortableDevices.Devices[ i ].ID );
end;
See Also
◼RefreshDevices