Click here to Skip to main content
15,894,019 members

Comments by jsharrison (Top 1 by date)

jsharrison 13-Jul-11 20:13pm View    
Hi, I have to also agree with Prerak, this is not a simple task and there is no single function you can call to safely remove a USB disk. I recently wrote some software to allow users to format or delete files from a memory stick and searched high and low for how to do this and found the code in the article you’ve read to be the only way to be able to safely remove USB disks.

I am thinking about posting an article about what I found and this could include a DLL that has such a function (ie EjectDisk(driveLetter)) for those not wanting to dig into the lower level stuff, if you are interested?

-JH