Re: Upper Filter Attachment
- From: divisortheory <divisortheory@xxxxxxxxx>
- Date: 17 May 2007 13:31:06 -0700
That's very possible, I had planned to cross that bridge when I came
to it, as the simple process of just correctly attaching to anything
is as much of an exercise as actually implementing the functionality
of the driver.
Anyway, cliff's notes version of my intentions: Write an upper filter
that receives read, write, open, and close requests for every USB
device on the system and possibly block the operation depending on
various properties of the target device.
The fact that the greatest common demoninator here is that all devices
are USB, and aside from that they may have nothing else in common is
what led me to think that usbhub.sys might be the place to attach the
filter.
I managed to get an INF file that I think might work. However all it
does is install my filter, it doesn't attach it. For that I had to
manually edit the UpperFilters value of the registry key for the USB
Hub. When I did this, though, the only routine that ever seemed to
have been called was IRP_MJ_PNP with IRP_MN_QUERY_DEVICE_RELATIONS.
Never got any kind of creates, opens, reads, or writes as far as I
could tell. I think you're probably right in that I need to filter
something else, but what?
Thanks very much for your response
z
On May 17, 2:38 pm, "Doron Holan [MS]" <dor...@xxxxxxxxxxxxxxxxxxxx>
wrote:
what are you going to do once you are filtering on top of usbhub? i would
guess that what you want to do is not going to be feasbile by filtering
usbhub directly.
d
.
- Follow-Ups:
- Re: Upper Filter Attachment
- From: Tim Roberts
- Re: Upper Filter Attachment
- References:
- Upper Filter Attachment
- From: divisortheory
- Re: Upper Filter Attachment
- From: Doron Holan [MS]
- Upper Filter Attachment
- Prev by Date: Re: Upper Filter Attachment
- Next by Date: Re: Invalid characters for WTSQuerySessionInformation?
- Previous by thread: Re: Upper Filter Attachment
- Next by thread: Re: Upper Filter Attachment
- Index(es):
Relevant Pages
|