登录
首页 » C# » CSharp-USB

CSharp-USB

于 2014-11-19 发布 文件大小:158KB
0 351
下载积分: 1 下载次数: 210

代码说明:

  C# 检测USB设备插入 程序十分简单 注意:程序中用到了一个USB设备的控件,该控件有6个方法,除了识别USB插入 还有检测USB拔出,接收USB消息等方法。(C# detect USB device is plugged into the program is very simple. Note: The program used in the control of a USB device, the control has six methods, in addition to recognize the USB insert also detect USB unplug USB receive messages and other methods.)

文件列表:

USB_test
........\UsbLibrary
........\..........\bin
........\..........\...\Debug
........\..........\...\.....\UsbLibrary.dll,20480,2014-10-10
........\..........\...\.....\UsbLibrary.pdb,75264,2014-10-10
........\..........\...\.....\UsbLibrary.XML,26505,2014-10-10
........\..........\HIDDevice.cs,12810,2007-03-15
........\..........\obj
........\..........\...\Debug
........\..........\...\.....\DesignTimeResolveAssemblyReferencesInput.cache,5903,2014-10-10
........\..........\...\.....\Refactor
........\..........\...\.....\........\UsbLibrary.dll,16384,2007-03-08
........\..........\...\.....\TempPE
........\..........\...\.....\UsbLibrary.csproj.FileListAbsolute.txt,813,2014-10-10
........\..........\...\.....\UsbLibrary.csproj.GenerateResource.Cache,779,2014-10-10
........\..........\...\.....\UsbLibrary.dll,20480,2014-10-10
........\..........\...\.....\UsbLibrary.pdb,75264,2014-10-10

........\..........\...\.....\UsbLibrary.UsbHidPort.resources,180,2014-10-10
........\..........\...\UsbLibrary.csproj.FileList.txt,208,2007-03-15
........\..........\...\UsbLibrary.csproj.FileListAbsolute.txt,2396,2010-07-16
........\..........\Properties
........\..........\..........\AssemblyInfo.cs,1391,2007-03-08
........\..........\Report.cs,2514,2007-03-08
........\..........\SpecifiedDevice.cs,2492,2007-03-09
........\..........\SpecifiedInputReport.cs,516,2007-03-08
........\..........\SpecifiedOutputReport.cs,808,2007-03-08

........\..........\UsbHidPort.cs,10185,2009-12-29
........\..........\UsbHidPort.Designer.cs,1096,2009-12-29
........\..........\UsbHidPort.resx,6381,2009-12-29
........\..........\UsbLibrary.csproj,3134,2014-10-10
........\..........\Win32Usb.cs,15637,2007-03-15
........\USB_test
........\........\App.config,187,2014-10-09
........\........\bin
........\........\...\Debug
........\........\...\.....\UsbLibrary.dll,20480,2014-10-10
........\........\...\.....\UsbLibrary.pdb,75264,2014-10-10
........\........\...\.....\UsbLibrary.xml,26505,2014-10-10
........\........\...\.....\USB_test.exe,9216,2014-11-18
........\........\...\.....\USB_test.exe.config,187,2014-10-09
........\........\...\.....\USB_test.pdb,24064,2014-11-18
........\........\...\.....\USB_test.vshost.exe,22984,2014-11-18
........\........\...\.....\USB_test.vshost.exe.config,187,2014-10-09
........\........\...\.....\USB_test.vshost.exe.manifest,490,2010-03-17
........\........\Form1.cs,1016,2014-11-18
........\........\Form1.Designer.cs,2449,2014-10-10
........\........\Form1.resx,6008,2014-10-10
........\........\obj
........\........\...\Debug
........\........\...\.....\DesignTimeResolveAssemblyReferences.cache,6388,2014-10-10
........\........\...\.....\DesignTimeResolveAssemblyReferencesInput.cache,7065,2014-10-10
........\........\...\.....\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs,0,2014-10-09
........\........\...\.....\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs,0,2014-10-09
........\........\...\.....\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs,0,2014-10-09
........\........\...\.....\TempPE
........\........\...\.....\USB_test.csproj.FileListAbsolute.txt,951,2014-11-18
........\........\...\.....\USB_test.csproj.GenerateResource.Cache,975,2014-10-10
........\........\...\.....\USB_test.csprojResolveAssemblyReference.cache,7146,2014-10-10
........\........\...\.....\USB_test.exe,9216,2014-11-18
........\........\...\.....\USB_test.Form1.resources,180,2014-10-10
........\........\...\.....\USB_test.pdb,24064,2014-11-18
........\........\...\.....\USB_test.Properties.Resources.resources,180,2014-10-10
........\........\Program.cs,520,2014-10-09
........\........\Properties
........\........\..........\AssemblyInfo.cs,1354,2014-10-09
........\........\..........\Resources.Designer.cs,2868,2014-10-09
........\........\..........\Resources.resx,5612,2014-10-09
........\........\..........\Settings.Designer.cs,1095,2014-10-09
........\........\..........\Settings.settings,249,2014-10-09
........\........\USB_test.csproj,4013,2014-10-10
........\USB_test.sln,1398,2014-10-10

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

发表评论

0 个回复

  • WOL_AIO
    Wake On Lan 通过设置BIOS中的Wake ON LAN,可以通过局域网UDP广播,启动远程计算机。(Wake On Lan in the BIOS by setting Wake ON LAN, LAN UDP through radio, start the remote computer.)
    2007-07-31 21:10:47下载
    积分:1
  • load_driver
    本代码只有两个函数,LoadNTDriver(...)用于加载驱动,DelSvr(...)用于卸载驱动。(This code has only two functions, LoadNTDriver (...) use to load the driver,and DelSvr (...) use for the uninstalled driver.)
    2010-12-23 21:36:33下载
    积分:1
  • stm32定时器+ADC+DMA+双缓冲 实现数据采集
    stm32定时器+ADC+DMA+双缓冲 实现数据采集()
    2017-08-14 19:02:35下载
    积分:1
  • VC_MFC-Sample1
    Microsoft Visual C++ MFC串口通信编程详解,主要介绍了用CreateFile()函数和WriteFile()函数读写串口的实例,以及设置 串口属性的实例. 在工业控制中,工控机(一般都基于 Windows 平台)经常需要与智能仪表通过串口 进行通信.串口通信方便易行,应用广泛. 一般情况下,工控机和各智能仪表通过 RS485 总线进行通信.RS485 的通信方式是 半双工的,只能由作为主节点的工控 PC 机依次轮询网络上的各智能控制单元子节点. 每次通信都是由 PC 机通过串口向智能控制单元发布命令,智能控制单元在接收到正 确的命令后作出应答. (Microsoft Visual C++ MFC serial communication programming explain CreateFile () and WriteFile () function to read and write the serial port of the instance, and set the serial port attribute instance in industrial control, IPC (generally based on the Windows platform) often need to communicate with the smart meter through the serial port serial communication easy and widely used normal circumstances, the IPC and intelligent instrument through RS485 communication RS485 communication is half-duplex, only as the primary node industrial PC turn polling network intelligent control unit child nodes. every communication from a PC via the serial port to issue commands to the intelligent control unit, intelligent control unit receives the correct command response.)
    2012-10-11 07:23:02下载
    积分:1
  • 最佳工作序列
    说明:  有N件工作,输入每件工作的费时、最后完成的期限及工作的价值,试求可能的一个完成工作序列,使价值和最大(There are N pieces of work, input each piece of work time, deadline and the value of the work, try to find a possible completion of the work sequence, so that the value and maximum)
    2019-04-02 14:06:36下载
    积分:1
  • fonetqer
    MFC的多模板使用,一起添加类似Visual的StartPage(More templates using MFC, add together similar Visual StartPage)
    2017-03-14 13:19:33下载
    积分:1
  • ADC_DMA_up
    基于DSP28335的DMA方式的触发ADC的例程,亲测可用(DSP28335 DMA triggle ADC)
    2018-01-17 16:06:16下载
    积分:1
  • ADO
    Vc++中,MFC中实现数据库的实时显示以及增加和删除(To increase the database to delete in MFC)
    2012-11-05 21:15:35下载
    积分:1
  • 多线管理
    安全的多线程管理,便于多线程编程,可供参考学习(Secure multithreading management)
    2019-04-11 15:48:38下载
    积分:1
  • ckongzhi
    说明:   思想:控制端向服务器端发送一段控制代码,6位的控制代码,服务器根据控制码的要求,完成指定操作。完成操作后,服务器发送反馈控制码,为3位。 服务器端程序后台运行(Thought: Control client to the server-side send a control code, control code 6, the server control code in accordance with the requirements of the completion of the specified operation. After the completion of the operation, the server code to send feedback control for three. Server-side program running in the background)
    2008-11-15 11:16:58下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载