Cannot communicate successfully with USB HID device using writefile()

后端 未结 1 655
北海茫月
北海茫月 2021-01-24 08:50

I am fairly new to C# as well as windows programming and I am attempting to establish communication between a USB HID device and an app written in c# on a windows xp pc. I have

1条回答
  •  借酒劲吻你
    2021-01-24 09:46

    Remove the ref in your WriteFile declaration.

    While http://www.pinvoke.net/ is a great resource for P/Invoke declarations, it's a wiki-style website and many declarations are wrong (often they won't work on a x64 machine).

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