Programmatically Safely Removing USB Hard Drive

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a .Net internally supported way to identify Removable devices and
USB hard drives and then programmatically "eject"/"Safely Remove" them? Or do
I have to go out to Win32 SDK, etc.?

Alex
 
I have not done this myself, but you can do a search on Removable Storage Management (RSM) APIs to accomplish this. And no, this does not exist inherently in the framework.

HTH
Altaf


--------------------------------------------------------------------------------

All that glitters has a high refractive index.
www.mendhak.com
Is there a .Net internally supported way to identify Removable devices and
USB hard drives and then programmatically "eject"/"Safely Remove" them? Or do
I have to go out to Win32 SDK, etc.?

Alex
 
Hi Alex,

Your question has been answered by "Kellie Fitton" in
microsoft.public.win32.programmer.ui newsgroup, please check there. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top