Location:
Search - usb WriteFile
Search list
Description: 如果你想打开一个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!
Platform: |
Size: 2184 |
Author: 副类 |
Hits:
Description: //打开 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,
Platform: |
Size: 1813 |
Author: lanxilange |
Hits:
Description: 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!
Platform: |
Size: 2178 |
Author: 郑卓超 |
Hits:
Description: 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!
Platform: |
Size: 2048 |
Author: 郑卓超 |
Hits:
Description:
Platform: |
Size: 442368 |
Author: dtrhjurh |
Hits:
Description: winarm for at91sam7s64 basicusb
Platform: |
Size: 313344 |
Author: 周晓萌 |
Hits:
Description: 如果你想打开一个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!
Platform: |
Size: 2048 |
Author: 副类 |
Hits:
Description:
Platform: |
Size: 2048 |
Author: lanxilange |
Hits:
Description: 这是一个用DriverStudio写的用于D12-USB驱动的程序,其中带有测试程序,可实现读写-This is a used DriverStudio written for D12-USB-driven process, in which a test procedure, can be read and write
Platform: |
Size: 1738752 |
Author: richyhuang |
Hits:
Description: vC++读写HID_USB设备,包含hid_usb的固件程序和上位机程序-vC++ read and write HID_USB equipment, including firmware hid_usb procedures and PC program
Platform: |
Size: 3123200 |
Author: zifengling |
Hits:
Description: 控制USB LPT的代码,通过WriteFile控制USB打印口-Read/Write USB LPT Port by ReadFile/WriteFile API,not by 0x378 I/O Port
Platform: |
Size: 17408 |
Author: 梁东 |
Hits:
Description: 通过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.
Platform: |
Size: 9404416 |
Author: 季超 |
Hits:
Description: 发现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
Platform: |
Size: 253952 |
Author: wpudn5 |
Hits: