Arí Ricardo Ody wrote:
Hi, There are two different events that may occur if you attach new mass storage to your PC. Some devices will trigger WMDeviceChange (flash drives, extrernal HDD etc.), and others will trigger file-system change events (media inserted into CD-ROM/DVD-ROM SDcard inserted into card reader etc.). You can't detect new device if it uses some special driver (e.g. Nokia phones if Nokia PC Suite is installed, because PC Suite will overtake the control over device before the device gets a device letter). Every device can be identified by unique GUID (can be read through WinAPI). GUID is given to the device (on partition level - two partitions on the same drive will have different GUID) at formating the drive. regards Boban bobby Spasic |
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
