文件名称:USBDetect
-
所属分类:
- 标签属性:
- 上传时间:2013-03-16
-
文件大小:1023.13kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
此代码是遍历pc上usb设备。
包含控制器 hub port 设配id 等信息
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 "SYSTEM\\CurrentControlSet\\Enum\\USB\\" )。
4、通过第1条的设备串、第2条打开设备返回信息、注册表。就可以确定usb设备(控制器->hub->端口)
-This code is to traverse the PC USB device.
Includes a controller hub port with ID and other information
USB actually and serial port is the same, the port is fixed (if you don t pick up the extension hub).
Sometimes a computer connected to a plurality of the same USB device, if have a camera (before and after each one), if we distinguish open is which one?
1, the first USB device first traversal, get the USB information (such as equipment series).
2, through the information returned when opening the USB device (this is very important for //usb#vid_1d27&pid_0600#5&10ef021e&0&5#{c3b5f022-5a42-1980-1909-ea72095601b1}).
3, traversing registry USB device information (USB_REGPATH "#define SYSTEM\\CurrentControlSet\\Enum\\USB\\").
4, through the equipment first series, second open the device returns information, registry.You can determine the USB (controller->hub-> port)
包含控制器 hub port 设配id 等信息
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 "SYSTEM\\CurrentControlSet\\Enum\\USB\\" )。
4、通过第1条的设备串、第2条打开设备返回信息、注册表。就可以确定usb设备(控制器->hub->端口)
-This code is to traverse the PC USB device.
Includes a controller hub port with ID and other information
USB actually and serial port is the same, the port is fixed (if you don t pick up the extension hub).
Sometimes a computer connected to a plurality of the same USB device, if have a camera (before and after each one), if we distinguish open is which one?
1, the first USB device first traversal, get the USB information (such as equipment series).
2, through the information returned when opening the USB device (this is very important for //usb#vid_1d27&pid_0600#5&10ef021e&0&5#{c3b5f022-5a42-1980-1909-ea72095601b1}).
3, traversing registry USB device information (USB_REGPATH "#define SYSTEM\\CurrentControlSet\\Enum\\USB\\").
4, through the equipment first series, second open the device returns information, registry.You can determine the USB (controller->hub-> port)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
USBDetect/bin/Test.exe
USBDetect/bin/USBDetect.dll
USBDetect/Test/ReadMe.txt
USBDetect/Test/res/Test.ico
USBDetect/Test/res/Test.rc2
USBDetect/Test/resource.h
USBDetect/Test/stdafx.cpp
USBDetect/Test/stdafx.h
USBDetect/Test/targetver.h
USBDetect/Test/Test.aps
USBDetect/Test/Test.cpp
USBDetect/Test/Test.h
USBDetect/Test/Test.rc
USBDetect/Test/Test.vcproj
USBDetect/Test/Test.vcproj.PC-201008261742.Administrator.user
USBDetect/Test/TestDlg.cpp
USBDetect/Test/TestDlg.h
USBDetect/USBDetect/cfg.h
USBDetect/USBDetect/cfgmgr32.h
USBDetect/USBDetect/cfgmgr32.lib
USBDetect/USBDetect/COMCTL32.LIB
USBDetect/USBDetect/debug.c
USBDetect/USBDetect/devioctl.h
USBDetect/USBDetect/devnode.c
USBDetect/USBDetect/dispaud.c
USBDetect/USBDetect/display.c
USBDetect/USBDetect/dllmain.cpp
USBDetect/USBDetect/enum.c
USBDetect/USBDetect/hid.lib
USBDetect/USBDetect/ReadMe.txt
USBDetect/USBDetect/resource.h
USBDetect/USBDetect/setupapi.lib
USBDetect/USBDetect/stdafx.cpp
USBDetect/USBDetect/stdafx.h
USBDetect/USBDetect/targetver.h
USBDetect/USBDetect/usb100.h
USBDetect/USBDetect/usbdesc.h
USBDetect/USBDetect/USBDetect.cpp
USBDetect/USBDetect/USBDetect.def
USBDetect/USBDetect/USBDetect.h
USBDetect/USBDetect/USBDetect.vcproj
USBDetect/USBDetect/USBDetect.vcproj.PC-201008261742.Administrator.user
USBDetect/USBDetect/usbioctl.h
USBDetect/USBDetect/usbview.c
USBDetect/USBDetect/usbview.h
USBDetect/USBDetect/vndrlist.h
USBDetect/USBDetect/winuser.h
USBDetect/USBDetect.sln
USBDetect/USBDetect.suo
USBDetect/界面.JPG
USBDetect/说明.txt
USBDetect/Test/res
USBDetect/bin
USBDetect/Test
USBDetect/USBDetect
USBDetect
USBDetect/bin/USBDetect.dll
USBDetect/Test/ReadMe.txt
USBDetect/Test/res/Test.ico
USBDetect/Test/res/Test.rc2
USBDetect/Test/resource.h
USBDetect/Test/stdafx.cpp
USBDetect/Test/stdafx.h
USBDetect/Test/targetver.h
USBDetect/Test/Test.aps
USBDetect/Test/Test.cpp
USBDetect/Test/Test.h
USBDetect/Test/Test.rc
USBDetect/Test/Test.vcproj
USBDetect/Test/Test.vcproj.PC-201008261742.Administrator.user
USBDetect/Test/TestDlg.cpp
USBDetect/Test/TestDlg.h
USBDetect/USBDetect/cfg.h
USBDetect/USBDetect/cfgmgr32.h
USBDetect/USBDetect/cfgmgr32.lib
USBDetect/USBDetect/COMCTL32.LIB
USBDetect/USBDetect/debug.c
USBDetect/USBDetect/devioctl.h
USBDetect/USBDetect/devnode.c
USBDetect/USBDetect/dispaud.c
USBDetect/USBDetect/display.c
USBDetect/USBDetect/dllmain.cpp
USBDetect/USBDetect/enum.c
USBDetect/USBDetect/hid.lib
USBDetect/USBDetect/ReadMe.txt
USBDetect/USBDetect/resource.h
USBDetect/USBDetect/setupapi.lib
USBDetect/USBDetect/stdafx.cpp
USBDetect/USBDetect/stdafx.h
USBDetect/USBDetect/targetver.h
USBDetect/USBDetect/usb100.h
USBDetect/USBDetect/usbdesc.h
USBDetect/USBDetect/USBDetect.cpp
USBDetect/USBDetect/USBDetect.def
USBDetect/USBDetect/USBDetect.h
USBDetect/USBDetect/USBDetect.vcproj
USBDetect/USBDetect/USBDetect.vcproj.PC-201008261742.Administrator.user
USBDetect/USBDetect/usbioctl.h
USBDetect/USBDetect/usbview.c
USBDetect/USBDetect/usbview.h
USBDetect/USBDetect/vndrlist.h
USBDetect/USBDetect/winuser.h
USBDetect/USBDetect.sln
USBDetect/USBDetect.suo
USBDetect/界面.JPG
USBDetect/说明.txt
USBDetect/Test/res
USBDetect/bin
USBDetect/Test
USBDetect/USBDetect
USBDetect
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.