This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于hdiapi.dll的调用



目前在USB通讯时出现问题,在官网上下载了hidapi.dll及源代码,其中包括一个测试程序hidtest.cpp,我调试了一下,以下函数执行成功:
hid_enumerate
hid_free_enumeration
hid_open
hid_get_manufacturer_string
hid_get_product_string
hid_get_serial_number_string
hid_get_indexed_string
以下函数执行失败:
hid_read
hid_send_feature_report
hid_get_feature_report
hid_write
好像说是发送的第一个字节是和PID有关,我的PID:0x2047那这四个函数的第一个字节应该怎么设置呢?谢谢大家