Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - usb writefile
Search - usb writefile - List
如果你想打开一个USB管道,你首先要知道这种USB设备的GUID和管理道名称, 获取句柄以后就可以使用ReadFile/WriteFile进行读写了!-If you want to open a USB pipeline You must first know the GUID of USB devices and management Road name, Access handles can use it after ReadFile / WriteFile for literacy!
Update : 2008-10-13 Size : 2.13kb Publisher : 副类

//打开 USB 口读写, 由驱动程序的 Pipe 名确定 HANDLE hPipe = OpenMyDevPipe(\"MyPipe1\") //驱动程序里面的 Pipe 名, 对应访问某个端点的 I/O, 这里我乱写的, 需要与驱动一致 if(hPipe != INVALID_HANDLE_VALUE) //打开 Pipe 成功 { ReadFile(hPipe, Buffer, BufSize, &nBytesRead, NULL) //从 hPipe 里读取数据到 Buffer 里 //WriteFile(hPipe, Buffer, BytesToWrite, &nBytesWritten, NULL) //把 Buffer 里面的 BytesToWrite 字节写入 hPipe CloseHandle(hPipe) } //使用 DeviceIoControl 访问 USB 设备 HANDLE hDevice = OpenMyDevice() if(hDevice != INVALID_HANDLE_VALUE) //打开设备成功 { //这些 DeviceIoControl 功能都是由设备定义的, 具体看设备和驱动的资料 if(DeviceIoControl(hDevice, IOCTL_READ_xxxx, &IOBlock, sizeof(IOBLOCK), &c, 1, &nBytes, NULL)) { //成功 } CloseHandle(hDevice) }-/ / open USB literacy, Drivers from the Pipe were identified HANDLE hPipe = OpenMyDevPipe ( " MyPipe1 ") / / driver inside Pipe, and a corresponding visit to the endpoint I / O, Here, I write without basis. consistent with the need to drive if (hPipe! = INVALID_HANDLE_VALUE) / / Open Pipe success (ReadFile (hPipe, Buffer, BufSize,
Update : 2008-10-13 Size : 1.77kb Publisher : lanxilange

USB驱动协议的简化版。如果你想打开一个USB管道,你首先要知道这种USB设备的GUID和管理道名称,获取句柄以后就可以使用ReadFile/WriteFile进行读写了!-USB drives a simplified version of the agreement. If you want to open a channel USB, you must first know the GUID USB devices Road names and management, acquisition handle can use it after ReadFile / WriteFile write!
Update : 2008-10-13 Size : 2.13kb Publisher : 郑卓超

USB驱动协议的简化版。如果你想打开一个USB管道,你首先要知道这种USB设备的GUID和管理道名称,获取句柄以后就可以使用ReadFile/WriteFile进行读写了!-USB drives a simplified version of the agreement. If you want to open a channel USB, you must first know the GUID USB devices Road names and management, acquisition handle can use it after ReadFile/WriteFile write!
Update : 2025-02-17 Size : 2kb Publisher : 郑卓超


Update : 2025-02-17 Size : 432kb Publisher : dtrhjurh

winarm for at91sam7s64 basicusb
Update : 2025-02-17 Size : 306kb Publisher : 周晓萌

如果你想打开一个USB管道,你首先要知道这种USB设备的GUID和管理道名称, 获取句柄以后就可以使用ReadFile/WriteFile进行读写了!-If you want to open a USB pipeline You must first know the GUID of USB devices and management Road name, Access handles can use it after ReadFile/WriteFile for literacy!
Update : 2025-02-17 Size : 2kb Publisher : 副类


Update : 2025-02-17 Size : 2kb Publisher : lanxilange

这是一个用DriverStudio写的用于D12-USB驱动的程序,其中带有测试程序,可实现读写-This is a used DriverStudio written for D12-USB-driven process, in which a test procedure, can be read and write
Update : 2025-02-17 Size : 1.66mb Publisher : richyhuang

vC++读写HID_USB设备,包含hid_usb的固件程序和上位机程序-vC++ read and write HID_USB equipment, including firmware hid_usb procedures and PC program
Update : 2025-02-17 Size : 2.98mb Publisher : zifengling

控制USB LPT的代码,通过WriteFile控制USB打印口-Read/Write USB LPT Port by ReadFile/WriteFile API,not by 0x378 I/O Port
Update : 2025-02-17 Size : 17kb Publisher : 梁东

通过Windows系统的API函数SetupDi族函数,获得USB针式打印机的句柄,然后在通过CreateFile,WriteFile函数向该打印机发送指令,以达到控制打印的目的。-SetupDi family of functions through Windows API function system, get a handle USB dot matrix printer, and then send commands to the printer through CreateFile, WriteFile function to achieve the purpose of controlling printing.
Update : 2025-02-17 Size : 8.97mb Publisher : 季超

DL : 0
发现usb_hid网上可参考的资源少,基于C#源码的就更少了,尤其是能通过验证的资源简直是没有,本usb hid源码在两三个银行用外部标准接口的硬件设备(如柜外清,条码识别,及指纹识别)测试通过了,关键是已经封装成了一个C#控件,使用时只需调用UsbLibrary.dll文件就行了,别再用那writefile了-Found usb_hid fewer resources available online reference, based on C# source code and even less, especially through the resources simply do not verify the source usb hid in two or three banks with an external standard hardware interfaces (such as outside the cabinet cleared , barcode recognition, and fingerprint recognition) test, the key is already packaged into a C# controls, just call UsbLibrary.dll file when using the line, do not use that writefile the
Update : 2025-02-17 Size : 248kb Publisher : wpudn5
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.