eject usb using c#

  • Thread starter Thread starter Claudia Fong
  • Start date Start date
C

Claudia Fong

Is it possible to eject usb device using c#?
After work is done I want the application to automatically eject the usb
device so the user doesn't need to click on the system tray safetly
remove device



Cheers!

Claudi
 
Is it possible to eject usb device using c#?
After work is done I want the application to automatically eject the usb
device so the user doesn't need to click on the system tray safetly
remove device

Cheers!

    Claudi

*** Sent via Developersdexhttp://www.developersdex.com***

Hi,

There is no support for tha tin the framework, what you could do is
look for the API function that does that and call that function from
your code using P/invoke. WMI might be another possibility
 
Back
Top