Reputation: 125
I am trying to translate some code I use to run a backup to Nim (as part of learning the language). How do I detect if one of my external hard drives is connected (by name?) and then which drive letter my Windows 10 PC has assigned to it?
Upvotes: 0
Views: 193
Reputation: 7170
With Window message: WM_DEVICECHANGE
and winapi RegisterDeviceNotification
Upvotes: 1