How on Win 10 Load my Hub Device filter on both USBHUB.sys and USBHUB3.sys in 1 INF

Hi ,

In Windows is it possible to filter my Hub device on both USBHUB.sys and also on USBHUB3.sys ?
My filter driver should load depending on whether it is enumerated by USBHUB.sys or USBHUB3.sys in Windows 10.

I see in few Win 10 laptops my USB 2.0 hub device is enumerated over USBHub.sys and on other laptops it is enumerated over USBHUB3.sys.

I tried to add my filter driver on both USBHUB.sys and USBHUB3.sys both in single INF file but INF fails to build.

How do we load my filter dynamically on USBHUB.sys /USBHUB3.sys on same windows 10 machine using single INF file or do we have any another solution for such issues?

Thanks
Ramanagouda

It should be pretty simple. Look at what id usbhub matched against (it should be on the properties page for the device) and repeat for usbhub3. Add both of those IDs to your inf with the relevant Needs/include directives

Get Outlook for Android


From: xxxxx@lists.osr.com on behalf of xxxxx@yahoo.com
Sent: Thursday, November 24, 2016 7:59:24 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] How on Win 10 Load my Hub Device filter on both USBHUB.sys and USBHUB3.sys in 1 INF

Hi ,

In Windows is it possible to filter my Hub device on both USBHUB.sys and also on USBHUB3.sys ?
My filter driver should load depending on whether it is enumerated by USBHUB.sys or USBHUB3.sys in Windows 10.

I see in few Win 10 laptops my USB 2.0 hub device is enumerated over USBHub.sys and on other laptops it is enumerated over USBHUB3.sys.

I tried to add my filter driver on both USBHUB.sys and USBHUB3.sys both in single INF file but INF fails to build.

How do we load my filter dynamically on USBHUB.sys /USBHUB3.sys on same windows 10 machine using single INF file or do we have any another solution for such issues?

Thanks
Ramanagouda


NTDEV is sponsored by OSR

Visit the list online at: http:

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

Thanks Doron,

With your suggestion i was able to load filter driver on both USBHUB and USBHUB3 .

But now what i see is that each time you change port i need to re-install drivers. How do we allow drivers to load for every port for same Hub device?

Thanks
Ramanagouda

xxxxx@yahoo.com wrote:

With your suggestion i was able to load filter driver on both USBHUB and USBHUB3 .

But now what i see is that each time you change port i need to re-install drivers. How do we allow drivers to load for every port for same Hub device?

To do that, you need to install a “class filter”, not a “device
filter”. Install yourself on the USB hub device class. Since there are
many devices that call themselves hubs when they aren’t really, that
means you’ll need to decide every time you get instantiated “is this a
device I need to filter?”


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