Safely Remove Hardware
Posted on 2004-11-03
I have just spent a good hour or two googling for this and have returned varying results with varying words
I want to run whatever API the "Safely Remove Hardware" uses to remove devices... I know there is always "rundll32.exe shell32.dll,Control_RunDLL hotplug.dll" and then I could use SendKeys.. I'll accept that as an answer if someone can maybe get that to work (removing a device using Sendkeys)
Top marks goes to whoever can somehow get me to perform the exact equivallant of "Safely Remove Hardware" using Visual Basic 6
I have a flash drive, I want to remove it so I can safely unplug it.
Many google results returned people asking the same question
Keywords Tried : Device Removal, API, "Safely Remove Hardware", Hotplug.dll, Eject Device, Unplug Device, Unplug Hardware, Flash Drive, Remove Device, Stop Device, shell32.dll,Control_RunDLL hotplug.dll, API Spy, API Viewer, devcon.exe, Programmatically Safely Remove Hardware, Remove Hardware from batch file ... etc etc