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

Popular posts from this blog

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

iphone - Smoothing a rounded stroke in Core Graphics -

c++ - QtQuick: QQmlApplicationEngine failed to load component qrc:/main.qml:23 Invalid attached object assignment -