作者: SKAN 最近更新时间: 20090602
With these functions usb flash drive hardware can be safely removed. No external program is needed.
USBD_DeviceEject( DeviceID )
USBD_GetDeviceID( Serial )
USBD_GetDeviceSerial( Drv="" )
USBD_SafelyRemove( Drv )
关于函数的参数和返回值, 请参阅其源码.
One of the functions *USBD_SafelyRemove()* requires at least WIN_VISTA, WIN_XP or WIN_2000.
There is no documentation. This one is handwritten by me.
Added manually the prefix USBD_ to DeviceEject() function, to make the library fully stdlib conform.
关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?t=44873
不存在
; #Include USBD.ahk #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% ; You may use a drive letter USBD_SafelyRemove( "H:" ) ; call DeviceEject() directly with a DeviceID ;USBD_DeviceEject( "USB\VID_058F&PID_6387\GDLL4HW4" )