Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

Modifying a USB Configuration Descriptor

MikeSMikeS Member Posts: 14

Hello,

I am wondering if there is a way to modify a USB Configuration Descriptor of a USB Mass Storage device? I need to force Windows to use a different interface or an alternate setting instead of the one it uses by default.
I tried loading my filter driver as LowerFilter on USB Bus Devices (36fc9e60-c465-11cf-8056-444553540000) and modifying the descriptor by intercepting URB_FUNCTION_GET_DESCRIPTOR_FROM_DEVICE request. I do see the system getting the descriptor, however, attempts to modify it at that stage does nothing, as it looks like the original value of the descriptor has already cached/processed somewhere before that point.
Is there any other way to do this? E.g. to load the filter driver any lower on the driver stack?
Or any other ideas on how to force the system to select a different interface/protocol of the connected USB Mass Storage device?

Thank you,
Mike

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
Developing Minifilters 4 Feb 2019 OSR Seminar Space
Writing WDF Drivers 25 Feb 2019 OSR Seminar Space
Kernel Debugging and Crash Analysis 25 Mar 2019 OSR Seminar Space