Finding serial number of USB drive without WMI

前端 未结 2 1002
抹茶落季
抹茶落季 2021-01-21 13:48

How do we find the serial number of a USB drive without using WMI in c#?

Thanks

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-21 14:46

    I don't think that C# has any native APIs for that sort of thing, but this blog post suggests a way to do it with interop. Code is in VB.net, but it shouldn't be too hard to translate into c# Hope that helps.

提交回复
热议问题