Detect removable drive (e.g. USB flash drive) C/C++ -
How can I find out that when there is a removable disk drive (D) connected to the system? How to obtain the mount path (for linux) and drive letter (for windows)?
EDIT: Is there a way to detect currently connected devices?
For Windows, the API will tell you that when a USB device is added, given information about the volume has gone. The drive letter dbcv_unitmask
returns.
Comments
Post a Comment