I'm looking to retrieve the serial number from a USB memory stick on windows in c++.
I have found plenty of C# examples, and c++ for linux but none for c++ and windows.
Edit
I have an article about how to get USB serial numbers for volumes in C++, without using WMI
http://oroboro.com/usb-serial-number/
There is a trick to doing it, you have to match up USB devices with disk volumes. You want to avoid WMI if you can because it is unreliable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With