Hello to all,
I would like to automatically detect if a USB Flah disk is plugged or
not on my PC .
with the function GetDriveType( ) I can't know which kind of removable
drive it is, with the types defined .... :
DRIVE_UNKNOWN
DRIVE_NO_ROOT_DIR
DRIVE_REMOVABLE
DRIVE_FIXED
DRIVE_REMOTE
DRIVE_CDROM
DRIVE_RAMDISK
Any idea ? ( I can t do any assumption on the size )
GetVolumeInformation( ) and others functions which return the size in
bytes and the number of cluster are not good to do the job !
Is it possible ?
( to detect Flash memory from one hand and to detect the communication (
USB or Firewire IEEE1394 or ... ) on the other hand )
Any suggestions would be very appreciated ! Thanks
Xavier
|