Declaration
TIEPortableDevices = class;
Description
An implementation of Windows Portable Devices API, which provides access to connected devices and external drives. It is used in ImageEn by the
TIEDcimAcquire class for acquisition of images from devices.
| Demos\ImageAcquisition\AllAcquire\AllAcquire.dpr |
| Demos\ImageAcquisition\PortableDevices\WPDDemo.dpr |
// Navigate to folder and fill listbox with its object IDs
procedure TfrmMain.OpenFolder(const sFolderID : WideString);
var
I: Integer;
begin
fPortableDevices.ActiveFolderID := sFolderID;
lbxObjects.Items.Clear;
for I := 0 to fPortableDevices.ObjectCount - 1 do
lbxObjects.Items.Add( fPortableDevices.Objects[ I ].ID );
end;
// Add all files in the DCIM folder and its sub-folders
if fPortableDevices.NavigateToFolderPath( 'Card\DCIM\', True, iewFile ) then
begin
lbxObjects.Items.Clear;
for I := 0 to fPortableDevices.ObjectCount - 1 do
lbxObjects.Items.Add( fPortableDevices.Objects[ I ].ID );
end;
Properties
Methods