slloyd has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone know how I can call the API to 'Safely Remove Hardware' on windows. I am writing a USB drive application and I thought it would be nice to add this to the menu if the USB drive was plugged in. I would need to send it the drive letter or something...

Replies are listed 'Best First'.
Re: Safely Remove Hardware on Win32
by PodMaster (Abbot) on Feb 18, 2005 at 07:28 UTC
      Thank you for your replies. I use Win32::API all the time but I have been unable to figure out what API does such a trick. I could use devcon but since it does not come with the OS natively, I was hoping that someone may already know what API to call. I guess I will keep looking.. Thanks again.
Re: Safely Remove Hardware on Win32
by Corion (Patriarch) on Feb 18, 2005 at 08:04 UTC