Do you know what is the API, or sequence of API calls that windows uses to accomplish the \"Eject\" function which is available on the shell context menu for removable volum
I came here accidentally while doing a search on "CM_Request_Device_Eject", and saw that it was similar to a solution I'd recently done by pulling together similar pieces of a solution. Forgive the late answer.
I've summarized the steps I've done for this on my project in this SO answer.