Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I don’t know how to simply ask for a safe drive removal through code/automation.



Use DeviceEject.exe to ask for a safe hardware removal using a simple program call with its parameters.

What I have tried:

Run the program help: EjectDevice.exe /?
Posted
Updated 25-Oct-20 12:50pm
v2

1 solution

DeviceEject isn't documented at all so I'm going to say it's not meant for users to use. On top of that, it has the "admin shield" on it, so if you do get it to do something, it'll require admin priv's to do it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900