Description: This reads the bus type of all drives associated with a drive letter.
This way you can safely detect removable USB devices.
It also has a feature to safely eject a device from the system (taken from activevb.de) and automatically displays arrival and removal of new devices.
Should work on NT/2k/XP.
This file came from Planet-Source-Code.com...the home millions of lines of source code
You can view comments on this code/and or vote on it at: http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=67914&lngWId=1
The author may have retained certain copyrights to this code...please observe their request and the law by reviewing all copyright conditions at the above URL.