dual role filter driver

Is it possible that a keyboard filter driver can support keyboard and mice filtering with the same code base?

Yes. At runtime you need to figure which stack you are filtering. If you are filtering below kbdclass/mouclass you can immediately by which IOCTLs are sent to you.

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@x-publisher.com
Sent: Tuesday, February 13, 2018 2:04 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] dual role filter driver

Is it possible that a keyboard filter driver can support keyboard and mice filtering with the same code base?


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:>

yes

On Tue, Feb 13, 2018 at 5:17 PM xxxxx@microsoft.com <
xxxxx@lists.osr.com> wrote:

Yes. At runtime you need to figure which stack you are filtering. If you
are filtering below kbdclass/mouclass you can immediately by which IOCTLs
are sent to you.

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:
xxxxx@lists.osr.com] On Behalf Of
xxxxx@x-publisher.com
Sent: Tuesday, February 13, 2018 2:04 PM
To: Windows System Software Devs Interest List
> Subject: [ntdev] dual role filter driver
>
> Is it possible that a keyboard filter driver can support keyboard and
> mice filtering with the same code base?
>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list online at: <
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fshowlists.cfm%3Flist%3Dntdev&amp;data=04|01|Doron.Holan%40microsoft.com|8fa6178ccde94fbc3a5708d5732da561|72f988bf86f141af91ab2d7cd011db47|1|0|636541562253776221|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D|-1&amp;sdata=lfg5O9obPfXspzzCAnw4QpUC7tHjrKqvI6YwvZCvUbI%3D&amp;reserved=0
> >
>
> MONTHLY seminars on crash dump analysis, WDF, Windows internals and
> software drivers!
> Details at <
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fseminars&amp;data=04|01|Doron.Holan%40microsoft.com|8fa6178ccde94fbc3a5708d5732da561|72f988bf86f141af91ab2d7cd011db47|1|0|636541562253776221|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D|-1&amp;sdata=5ibP5mSVM3Ph5qU6mVmt8%2BOfne3qu%2BFcbSDtnu7vwAE%3D&amp;reserved=0
> >
>
> To unsubscribe, visit the List Server section of OSR Online at <
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.com%2Fpage.cfm%3Fname%3DListServer&amp;data=04|01|Doron.Holan%40microsoft.com|8fa6178ccde94fbc3a5708d5732da561|72f988bf86f141af91ab2d7cd011db47|1|0|636541562253776221|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D|-1&amp;sdata=883DfLsPt6iE4NgjbotGUqIisfkpH03D6gbi516SAdU%3D&amp;reserved=0
> >
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list online at: <
> http://www.osronline.com/showlists.cfm?list=ntdev&gt;
>
> MONTHLY seminars on crash dump analysis, WDF, Windows internals and
> software drivers!
> Details at http:
>
> To unsubscribe, visit the List Server section of OSR Online at <
> http://www.osronline.com/page.cfm?name=ListServer&gt;
></http:>

Now I want to do this but what should I do with a function like that

WdfDeviceInitSetDeviceType(DeviceInit, FILE_DEVICE_MOUSE);

Should I call it or should I change the parameter to

FILE_DEVICE_UNKNOWN?

Just use file_device_unknown. The file_device value is pretty meaningless for a filter.

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@x-publisher.com
Sent: Friday, February 16, 2018 1:36 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] dual role filter driver

Now I want to do this but what should I do with a function like that

WdfDeviceInitSetDeviceType(DeviceInit, FILE_DEVICE_MOUSE);

Should I call it or should I change the parameter to

FILE_DEVICE_UNKNOWN?


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:>