Home All Groups Group Topic Archive Search About

Programmatically Safely Removing USB Hard Drive

Author
3 Nov 2005 10:28 PM
Alex Maghen
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

Author
3 Nov 2005 11:07 PM
S.M. Altaf [MVP]
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
  "Alex Maghen" <AlexMaghen@newsgroup.nospam> wrote in message news:FB0F15ED-2438-4B77-84B3-0F5458ADC3F2@microsoft.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
Author
4 Nov 2005 6:53 AM
Jeffrey Tan[MSFT]
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.

AddThis Social Bookmark Button