Safely remove a USB drive using the Win32 API?

前端 未结 5 1416
盖世英雄少女心
盖世英雄少女心 2020-11-27 04:03

How do I remove a USB drive using the Win32 API? I do a lot of work on embedded systems and on one of these I have to copy my programs on a USB stick and insert it into the

5条回答
  •  不知归路
    2020-11-27 04:22

    It looks like Sync lets you specify -e to eject removable drives. While not a win32 API, you could probably just call sync -e [drive_letter] from your makefile.

提交回复
热议问题