How to eject a USB removable disk/volume, similar to the “Eject” function in Windows Explorer?

后端 未结 2 1495
野性不改
野性不改 2020-12-31 05:56

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

2条回答
  •  盖世英雄少女心
    2020-12-31 06:36

    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.

提交回复
热议问题