Introduction - If you have any usage issues, please Google them yourself
Delphi version of the Flash Disk thieves. . Principle: When the Windows system settings to change the hardware, the system will be sent to all applications WM_DEVICECHANGE a message. When equipment is prohibited or activated (for example, we insert a CD-ROM, CD-ROM from the drive out, or devices in the system to remove or prohibit the printing port), the wParam parameter of the message were designated as DBT_DEVICEARRIVAL (equipment installed) and DBT_DEVICEREMOVECOMPLETE (equipment to remove the finish), according to these two parameters can determine the existence of flash memory, lParam parameter points to a DEV_BROADCAST_HDR structure, The structure members are dbch_devicetype change the type of equipment, when the value of DBT_DEVTYP_VOLUME when that label with a name change drive, under normal circumstances both of the CD-ROM drive.