HidP_GetUsageValue() for Tip Switch returns HIDP_STATUS_USAGE_NOT_FOUND

Hi everyone,

A while back, I’ve posted a similar question like this (http://www.osronline.com/showThread.CFM?link=265679), and Tim Roberts answered, but I never got to reply to his response (and so I couldn’t reply on that thread anymore). I also just found out that somebody else has asked this exact the same question but he got no response (http://osronline.com/showThread.CFM?link=229744).

Going back to Tim’s response, how do I exactly dump the report descriptor? I know that there’s the IOCTL_HID_GET_COLLECTION_DESCRIPTOR code but that gives me only the preparsed data.

Also, if anyone has any other ideas on the original question, please feel free to help me!

Thanks!

xxxxx@gmail.com wrote:

A while back, I’ve posted a similar question like this (http://www.osronline.com/showThread.CFM?link=265679), and Tim Roberts answered, but I never got to reply to his response (and so I couldn’t reply on that thread anymore). I also just found out that somebody else has asked this exact the same question but he got no response (http://osronline.com/showThread.CFM?link=229744).

Going back to Tim’s response, how do I exactly dump the report descriptor? I know that there’s the IOCTL_HID_GET_COLLECTION_DESCRIPTOR code but that gives me only the preparsed data.

Doesn’t IOCTL_HID_GET_REPORT_DESCRIPTOR do what you want?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Oh wow, thanks! My eyes glossed over that IOCTL code in the MSDN doc. Curious question though: Will I be able to make this particular IOCTL request from a filter driver of an HID class-enumerated PDO?

Thanks!

xxxxx@gmail.com wrote:

Oh wow, thanks! My eyes glossed over that IOCTL code in the MSDN doc. Curious question though: Will I be able to make this particular IOCTL request from a filter driver of an HID class-enumerated PDO?

I don’t know. Honestly, it would have taken less time to code this up
and try it than it did to type up the question and wait for a response.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.