Accessing vendor-specific report in HID mouse

When a HID mouse defines a report with vendor-defined usage page in the Generic Desktop / Mouse top level collection, is there a way to access it from Win32 user mode code?

As far as I know, mouse’s TLC device is exclusively opened by the OS and I cannot open it, and I cannot get WM_INPUT with RAWHID for the device either. (all I get is WM_INPUT with RAWMOUSE, which doesn’t include non-standard information) So, I guess the answer is no, but I just want to make sure that I’m not missing anything…

And, before you ask, no, I cannot change the device’s HID descriptor.

You can’t get at it from UM. You must use a device lower filter to get it. See the firefly example.

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Friday, December 1, 2017 10:05 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Accessing vendor-specific report in HID mouse

When a HID mouse defines a report with vendor-defined usage page in the Generic Desktop / Mouse top level collection, is there a way to access it from Win32 user mode code?

As far as I know, mouse’s TLC device is exclusively opened by the OS and I cannot open it, and I cannot get WM_INPUT with RAWHID for the device either. (all I get is WM_INPUT with RAWMOUSE, which doesn’t include non-standard information) So, I guess the answer is no, but I just want to make sure that I’m not missing anything…

And, before you ask, no, I cannot change the device’s HID descriptor.


NTDEV is sponsored by OSR

Visit the list online at: https:

MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
Details at https:

To unsubscribe, visit the List Server section of OSR Online at https:</https:></https:></https:>

Thanks for confirming that filter driver is necessary.