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 56
下载积分: 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 个回复

  • 自己实现的推箱子游戏,用vc6.0编译成功,有一定的价值
    自己实现的推箱子游戏,用vc6.0编译成功,有一定的价值-Realize their own game of Sokoban with vc6.0 compile successful, has some value
    2022-09-23 00:35:03下载
    积分:1
  • 套接字的TCP
    socket tcp-socket tcp..............................
    2022-05-31 10:25:16下载
    积分:1
  • function [tout, yout] = rk4 (ypfun. tspan, y0, h)% fixed step four
    function [tout, yout] = rk4(ypfun, tspan, y0, h) %定步长四阶Runge-Kutta法求常微分方程(组)数值解 %[tout,yout] = rk4( ypfun , tspan, y0,h) % 这里字符串ypfun是用以表示f(t, y)的M文件名, % tspan=[t0, tfinal]表示自变量初值t0和终值tf % y0表示初值向量y0,h是步长。 % 输出列向量tout表示节点 (t0 , t1 , … , tn) % 输出矩阵yout 表示数值解,每一列对应y的一个分量-function [tout, yout] = rk4 (ypfun. tspan, y0, h)% fixed step four-stage Runge- Kutta method for ordinary differential equations (Group) numerical solution% [tout. yout] = rk4 (ypfun, tspan, y0, h)% string ypfun here is used to indicate that f (t, y) M name, tspan% = [t0. tfinal] said variable initial and final t0 tf% y0 said initial vector y0, h is a step. % Output column vector tout said Node (t0, t1, ..., tn)% output matrix yout said numerical solution, each y counterparts out of a weight
    2023-01-15 01:20:03下载
    积分:1
  • C++buider版本控制源码
    C++buider版本控制源码-C++ Buider source version control
    2023-05-26 11:00:03下载
    积分:1
  • txt and bin file test
    基于对话框的文本测试 和二进制文件测试-txt and bin file test
    2022-04-22 16:23:56下载
    积分:1
  • VC++绘制彩色的五角星! 不同的区域用不同的颜色填充! 通过修改华刷颜色,可以把五角星填充成五颜六色.
    VC++绘制彩色的五角星! 不同的区域用不同的颜色填充! 通过修改华刷颜色,可以把五角星填充成五颜六色.-VC mapping color five-pointed star! Different regions use different colors filled! By modifying Chinese brush color can be packed into a colorful five-pointed star.
    2022-04-24 09:37:42下载
    积分:1
  • 检测windows系统硬件
    检测windows系统硬件-detection system hardware
    2022-04-16 03:13:51下载
    积分:1
  • 百度地图测试
    百度地图api测试开发,小练手,大家用得到的就用,用不到的别喷,谢谢。地理数据是随便拾取的,并不是真实数据,仅做参考。 用的intellij-idea,测试的话需要在intellij-idea里面运行
    2022-04-21 17:36:03下载
    积分:1
  • 关于crc16位效验码的源代码计算方法,该效验码可以应用到通讯,等对数据传输要求较高的通讯。...
    关于crc16位效验码的源代码计算方法,该效验码可以应用到通讯,等对数据传输要求较高的通讯。-crc16 place on the well-tested code of the source code calculation method, the well-tested code can be applied to the telecommunications, data transmission and other higher communications.
    2022-04-17 15:17:51下载
    积分:1
  • 关于用vb进行windows ce 的书籍。
    关于用vb进行windows ce 开发的书籍。-vb for use on windows ce development of the books.
    2023-04-22 07:05:03下载
    积分:1
  • 696524资源总数
  • 103938会员总数
  • 55今日下载