hub->端口)-IMDN开发者社群-imdn.cn"> hub->端口) - IMDN开发者社群-imdn.cn">
登录
首页 » Windows开发 » VS2010遍历pc上usb设备。 包含控制器 hub port 设配id 等信息

VS2010遍历pc上usb设备。 包含控制器 hub port 设配id 等信息

于 2022-10-31 发布 文件大小:1,023.13 kB
0 166
下载积分: 2 下载次数: 1

代码说明:

usb其实和串口是一样的,其端口也是固定的(如果你不接扩展hub)。有时一台电脑接多个相同的usb设备,如果接连个摄像头(前后各一个),我们如果区分打开的是哪一个呢?1、先把usb设备先遍历出来,得到usb信息(设备串等)。2、通过打开usb设备时返回信息(这个很重要 //usb#vid_1d27&pid_0600#5&10ef021e&0&5#{c3b5f022-5a42-1980-1909-ea72095601b1})。3、遍历注册表得到usb设备信息(#define USB_REGPATH "SYSTEMCurrentControlSetEnumUSB" )。4、通过第1条的设备串、第2条打开设备返回信息、注册表。就可以确定usb设备(控制器->hub->端口)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 动态规划
    动态规划----矩阵连乘问题 动态规划法是解决问题的一种方法。它不规定为了得到结果需如何将问题划分为子问题的固定方法,而是按不同输入给出问题的具体实例的子问题划分方法,然后再进行运算、解答问题。 矩阵连乘问题的主要思想如下: 1)设置大小为连乘个数的方阵 2)主对角线上方各元素Di,j(ij)记录获得该最小工作量矩阵分组的第一组的最后一个矩阵的序列号 最后通过下方元素可知最终结果的分组方式。-dynamic programming matrix continually multiply-dynamic programming problem is a problem-solving method. It does not require the results need to be how to divide the problems of the sub- problems fixed, but different input given by the specific example of the problem partition method, and then calculate, and answer questions. Matrix continually multiply the main idea is as follows : 1) the installation of the size of continually multiply the number phalanx 2) above the main diagonal elements Di, j (ilt; J) Matrix Mi continually multiply to the smallest workload 3) below elements Di, j (IGT; J) the record was the smallest workload of a matrix of the first group of a matrix of the final sequence, followed by the final element of the final results of the
    2022-06-17 10:27:59下载
    积分:1
  • 这是一个用于控制列表框的程序,可以很轻松的了解如何进行设置列表框及其用法...
    这是一个用于控制列表框的程序,可以很轻松的了解如何进行设置列表框及其用法-A program for controlling listbox,you could know how to set and use the listbox with it.
    2022-02-03 01:42:49下载
    积分:1
  • 隐写术
    stegenography 是一种技术,躲进图像 file.so 您可以发送任何机密数据的任何文件。
    2022-07-16 02:08:07下载
    积分:1
  • 200308141526117224仿MSN(网易泡泡)界面,从事及时通信人员
    200308141526117224仿MSN(网易泡泡)界面,从事及时通信开发人员-200308141526117224, imitating the interface of MSN, fitting with betimes communicatting developer
    2022-03-01 06:20:16下载
    积分:1
  • 抽象工厂
    主要是一些初学者对C#抽象工厂的理解。和使用反射,加深对抽象工的理解能力我的程序中有需要一系列的对象,比如apple,orange…, 要想利用他们,我们就必须在程序中根据用户要求,然后一个个调用 new 操作符来生成他们,这样客户程序就要知道相应的类的信息,生成的代码显然不够灵活。我们可以在代码中不利用具体的类,而只是说明我们需要什么,然后就能够得到我们想要的对象吗? 哦,我们都看设计模式,听吧,很多人都在那里鼓吹他们是如何如何的棒,我们看看怎么样利用他们来解决问题。目标明确了,那我们看看哪个能够符合我们的要求。GoF的《设计模式》都看过吧,似懂非懂的看了一些,那我们看看能够不能够“凑”上去呢?J 嗯,我们的程序考虑的是对象怎么创建的,创建型模式应该符合要求吧。然后我们浏览一下各模式的“意图”部分。呵呵,第一个好像就撞到彩了, 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-01-25 17:25:58下载
    积分:1
  • some procedures you have to see if I find a very long time the
    一些C的程序 你们都来看看 我找了好久好久的 -some procedures you have to see if I find a very long time the
    2022-01-28 07:47:53下载
    积分:1
  • facedetector
    人脸检测器 #include < iostream > #include < cv.h > #include < highgui.h > int main(void) { int 键 = 0 ; int i; CvMemStorage * 存储 = cvCreateMemStorage (0) ; CvCapture * 捕获 = cvCaptureFromCAM (0) ; char * 文件名 ="haarcascade_frontalface_alt.xml"; CvHaarClassifierCascade * 梯级 = (CvHaarClassifierCascade *) cvLoad (文件名, 0,0,0) ; 虽然 (关键! = "q") { IplImage * 帧 = cvQueryFrame (捕获) ; 如果 (! 帧) 断 ; CvSeq * 脸 = cvHaarDetectObjects ( 帧, 级联, 存储, 1.1、 3, 0 / * CV_HAAR_DO_CANNY_PRUNNING *, cvSize (40,40)) ; 为 (我 = 0 ; 我 < (脸? 面孔-> 共: 0) ; i + +) { CvRect * wajah = (CvRect *) cvGetSeqElem (的脸,我) ; CvFont 字体 ; cvInitFont (& 字体,CV_FONT_HERSHEY_SIMPLEX,1.0,1.0,1,5,CV_AA) ; CvRect * r=(CvRect*) cvGetSeqElem(faces, i) ; cvPutTex
    2022-01-30 19:16:21下载
    积分:1
  • 操作系统的一个小程序放置策略,仅供学习使用
    操作系统的一个小程序放置策略,仅供学习使用-operating system placed a small program strategy, only learning to use
    2022-10-23 21:05:04下载
    积分:1
  • Asks answer for the security question as a second stage of password recovery
    Asks answer for the security question as a second stage of password recovery
    2022-12-11 22:35:03下载
    积分:1
  • Reflector 4.2.40 (C#) source code (a full
    Reflector 4.2.40 (C#)源代码 (全功能版) 如题,有兴趣的下载,编译就可运行-Reflector 4.2.40 (C#) source code (a full-featured version), such as title, are interested to download, compile to run the
    2022-03-06 18:31:03下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载