• 大小:
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-11
  • 语言: C#
  • 标签: C#  

资源简介

C# HID 关于HID协议通讯主要是上位机的代码,与USB的通讯

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using HIDacheobjects;
using USBComm;
using Microsoft.Win32.SafeHandles;
using System.Runtime.InteropServices;

namespace HIDache
{
    public partial class MainForm : Form
    {
        private const int WM_DEVICECHANGE = 0x0219; // a change occurred with connected devices
        private const int DBT_DEVICEARRIVAL = 0x8000;  // system detected a new device
        private const int DBT_DEVICEQUERYREMOVE = 0x8001;  // wants to remove may fail
        private const int DBT_DEVICEQUERYREMOVEFAILED = 0x8002;  // removal aborted
        private const int DBT_DEVICEREMOVEPENDING = 0x8003;  /

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      12710  2008-08-27 18:48  HIDacheobjects\HIDacheDevice.cs

     文件       2818  2008-08-22 21:02  HIDacheobjects\HIDacheobjects.csproj

     文件       1440  2008-05-17 12:19  HIDacheobjects\Properties\AssemblyInfo.cs

     文件       1850  2009-01-17 14:44  USBComm\Debugging.cs

     文件        635  2009-01-17 14:44  USBComm\DebuggingDeclarations.cs

     文件       2053  2008-08-22 19:37  USBComm\DeviceCommand.cs

     文件      37425  2009-01-17 15:11  USBComm\DeviceManagement.cs

     文件       8966  2009-01-17 14:58  USBComm\DeviceManagementDeclarations.cs

     文件       2586  2009-01-17 14:44  USBComm\FileIODeclarations.cs

     文件      41281  2009-01-17 14:45  USBComm\Hid.cs

     文件      12265  2009-01-17 15:00  USBComm\HIDCommobject.cs

     文件       6185  2009-01-17 14:44  USBComm\HidDeclarations.cs

     文件       1426  2008-07-19 11:05  USBComm\Properties\AssemblyInfo.cs

     文件       2918  2009-01-17 14:44  USBComm\USBComm.csproj

     文件       4784  2009-01-17 00:08  HIDache\Form1.cs

     文件       2454  2008-08-27 18:58  HIDache\Form1.Designer.cs

     文件     564912  2008-08-27 18:58  HIDache\Form1.resx

     文件       5379  2008-08-27 19:01  HIDache\HIDache.csproj

     文件       1884  2008-07-19 11:34  HIDache\HIDache.sln

     文件       4663  2008-08-27 18:45  HIDache\HIDAcheControl.cs

     文件      13635  2008-08-27 18:45  HIDache\HIDAcheControl.Designer.cs

     文件       6028  2008-08-27 18:45  HIDache\HIDAcheControl.resx

     文件        502  2008-05-17 12:20  HIDache\Program.cs

     文件       1426  2008-05-17 12:17  HIDache\Properties\AssemblyInfo.cs

     文件        605  2008-05-17 13:01  HIDache\Properties\DataSources\HIDacheobjects.HidAcheDevice.datasource

     文件       3361  2008-08-27 18:47  HIDache\Properties\Resources.Designer.cs

     文件       6459  2008-08-27 18:47  HIDache\Properties\Resources.resx

     文件       1092  2008-05-17 12:17  HIDache\Properties\Settings.Designer.cs

     文件        249  2008-05-17 12:17  HIDache\Properties\Settings.settings

     文件       3256  2008-08-23 23:04  HIDache\RadioButtonGroup.cs

............此处省略19个文件信息

评论

共有 条评论