Location:
Search - diskthief
Search list
Description: Delphi版的闪盘小偷。。
实现原理:当Windows系统的硬件设置发生变化时,系统将会向所有应用程序发送一条WM_DEVICECHANGE消息.当有设备被禁止或激活时(比如我们插入光盘,从光驱中取出光盘,或者在系统设备中删除或禁止打印端口),该消息的wParam参数分别被指定为DBT_DEVICEARRIVAL(设备安装完毕)和DBT_DEVICEREMOVECOMPLETE(设备移除完毕),根据这两个参数可以判断闪存是否存在,lParam参数指向一DEV_BROADCAST_HDR结构,该结构中的dbch_devicetype成员是变化设备的类型,当该值为DBT_DEVTYP_VOLUME时,表明一个带有卷标名的驱动器发生了变化,一般情况下该驱动器既为光驱.-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.
Platform: |
Size: 8192 |
Author: dll |
Hits:
Description: 采用Visual C++设计的一个U盘小偷的程序,实现文件的自动拷贝,当电脑上有外设插入时,系统自动检测并自动的将文件从U盘拷贝到本地电脑上-Using Visual C++ design of a U disk thief program to realize the automatic copy of the file, when the computer peripherals plug on, the system automatically detect and automatically copy the files from the U disk to the local computer
Platform: |
Size: 32768 |
Author: 朱小明 |
Hits: