ListDrives Method
List drives available to the user.
Syntax
public void listDrives();
Remarks
This method lists drives available to the user. In many cases this will only be the user's default drive.
After calling this method DriveCount will be populated with the number of drives available. DriveIndex may be set to any value from 0 to DriveCount to select a drive. By default the DriveIndex is automatically set to 0 to select the first drive returned. After calling this method the following properties may be queried to obtain information about the drive:
- DriveId
- DriveType
- DriveOwnerId
- DriveOwnerName
- DriveDeletedSpace
- DriveRemainingSpace
- DriveState
- DriveTotalSpace
- DriveUsedSpace