C# WriteFile(), unable to write to USB HID device

前端 未结 2 560
再見小時候
再見小時候 2021-01-07 02:05

I am fairly new to C# as well as windows programming and I am attempting to establish communication between a USB HID device. I got the device path successfully using \'Set

相关标签:
2条回答
  • 2021-01-07 02:25

    You'll probably have to use a USB library, like this one

    0 讨论(0)
  • 2021-01-07 02:35

    I am sure there is some reason why you are dipping into such low level Win32 functions, but I would advise if you just want to write a file somewhere just use the File class within .net.

    If you are just wanting to write bytes then one of the simplest ways is to use File.WriteAllBytes() method.

    http://msdn.microsoft.com/en-us/library/system.io.file.writeallbytes.aspx

    0 讨论(0)
提交回复
热议问题