question

wj-chan avatar image
0 Votes"
wj-chan asked wj-chan answered

WriteFile error 0x57 (87) after opening HID-over-I2C HID-compliant vendor-defined device

I was running Microsoft sample HID app, hclient from GitHub.
https://github.com/microsoft/Windows-driver-samples/tree/master/hid/hclient

Opening the I2C HID-compliant vendor-defined device is OK.
But When I do a WriteFile I got error 0x57.

Any idea how to fix it?
I have checked the report ID and report length.

Thanks.

windows-hardware-code-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

wj-chan avatar image
0 Votes"
wj-chan answered

Resolved by using HidD_SetOutputReport() API.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.