As for the Windows platform, is this their event that I can find to tell when we plugged in a USB drive or any portable media?
You will not receive such notifications without prior registration for them. Use RegisterDeviceNotification () to do this.
Once you have registered your window to receive such notifications, process the WM_DEVICECHANGE message .
Even if this article is about Qt , the code in the answer here matters.
Source: https://habr.com/ru/post/1709458/More articles:Embedding assembly in C with compiler search registers for you - cError "isEqualToString" Cocoa - objective-cWhy am I getting the isEqualToString error in this Cocoa code? - objective-c"звуковые", "Вы имели в виду функциональность THAT", используя полнотекстовый поиск в SQL Server 2005 - sql-serverTracking other peoples projects with git - gitС++ способ инъекции зависимостей - Шаблоны или виртуальные методы? - c++How do I reorganize this project? - oopHow to quickly get if a directory was changed using C ++ without a thread or monitoring process? - directoryCSS Layout Set - cssJava: Как я могу каталогизировать документы API Java с помощью Quicksilver? - javaAll Articles