I'm trying to read report using ReadFile from my keyboard, but encountered with one problem. I can't get usages from a report buffer
1. ReadFile - success (3 bytes, with Report ID).
2. GetButtonCaps - success (1 button capability).
3. the button capability match the report ID and I'm using report page from HIDP_BUTTON_CAPS to get usages.
4. GetUsagesEx - fail with error code HIDP_STATUS_INCOMPATIBLE_REPORT_ID.
I've read about this error code in MSDN (
http://msdn.microsoft.com/en-us/library/ms923757.aspx), but I don't know how to interpret it in my situation
The device has only one button capability with one page ID and I use this page ID.
Could someone say, what is wrong?