C#代码,用于获取连接到Windows 7 PC的设备的驱动程序信息 [英] C# Code for getting driver information for device connected to windows 7 PC

查看:203
本文介绍了C#代码,用于获取连接到Windows 7 PC的设备的驱动程序信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我不是程序员,只是测试人员。我需要在C#中编写代码,以便将USB连接设备的驱动程序信息(驱动程序版本和VID / PID)提供给Windows 7笔记本电脑。我有visual studio 2008.

I am not a programmer, just a tester. I need to write code in C# that will get me driver information (driver version and the VID/PID) of a USB connected device to windows 7 laptop. I have visual studio 2008.

推荐答案

您可以使用WMI列出USB设备信息(某些信息这里 [ ^ ])。您可以搜索C#代码以使用WMI并将它们组合在一起。
You can use WMI to list USB device information (some information here[^]). You can search for C# code to use WMI and combine both together.


这篇关于C#代码,用于获取连接到Windows 7 PC的设备的驱动程序信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆