Re: Upper Filter Attachment

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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

.



Relevant Pages

  • Attaching to the USB bus
    ... I am trying to filter every USB device that gets inserted into my Windows ... I'd rather attach as an upper bus filter to hopefully ...
    (microsoft.public.development.device.drivers)
  • Re: USB device driver
    ... Otherwise, volume upper filter is the proper place. ... Your filter can ask the underlying stack for the bus data and fail to activate if this is not your USB device. ... If I write a file system filter driver wont data being written to local hard ...
    (microsoft.public.development.device.drivers)
  • Re: USBAudio.sys source code
    ... I am not in detail familiar with the usbaudio filter architecture but since ... I need to support high speed USB with a USB transaction rate of more than 1 ... or upper filter driver could accomodate this. ...
    (microsoft.public.development.device.drivers)
  • Re: DirectShow-Add USB audio render but sound not come out the USB hea
    ... I want my app to output audio to USB headset. ... an 'USB' audio render by matching the filter, ...
    (microsoft.public.win32.programmer.directx.audio)
  • Re: Why this flash drive not detected in devd?
    ... dev.umass.1.%driver: umass ... Could I know why the flash drive is not detected on attach? ... The USB subsystem isn't currently equipped to notify devd (technically, ... While sysctl gives: ...
    (freebsd-questions)