Re: A filter driver with bus enumeration capabilities: aka serenum.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Yes, it is possible, but with one caveat. Since your filter is not the power policy owner for the stack, it cannot ensure that when the child is powered up that the parent stack is also powered up....BUT...for serial that does not really matter b/c once you send the create to the serial stack from the child stack, serial will stay powered on until it has been closed.

1) mark yourself as a filter, WdfFdoInitSetFilter
2) create a WDFCHILDLIST, you cannot use the built in FDO child list since you are not the PPO, by calling WdfChildListCreate
3) mark a description id as present and you now have a child

The kbfiltr example in the wdk shows how to do exactly this, it is an upper filter which enumerates a raw PDO

d


--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"m navab" <mnavab@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:602C4E6E-B2CC-4F8F-B3B9-AE7DC2545BA2@xxxxxxxxxxxxxxxx
A filter driver with bus enumeration capabilities: aka serenum.

I need to write a custom serial enumerator that can discover custom devices
on the serial port.
In the past I've written this based on serenum, and it works. But, now I
want to convert it to KMDF based on Toaster Bus. How can a driver be a
complete pass thru filter (for all i/o, create/close, power, pnp) and
enumerate childeren at the same time?

thanks in advance,

--
m navab

.



Relevant Pages

  • Re: Bluescreen when we try to attach a filter to another device stack in KMDF
    ... we have a PS/2 mouse filter driver that needs to dynamically ... create a filter on the *keyboard* driver stack. ... A summary of what we're doing: we're creating a KMDF control device, ... ExceptionAddress: 8287022c ...
    (microsoft.public.development.device.drivers)
  • Re: Delaying child browse
    ... If you change the limit to a manual filter string you can control when ... time lag since the last reset. ... Moving the child filter to the ... View engine trigger because it was defined as a reset field. ...
    (comp.lang.clarion)
  • Re: weird problem with a filter
    ... I'm not new in the filter developments, I developed many filters and nobody ... anywhere) and it also crashes. ... > stack" comment by the original poster often implies that the stack itself ... > has been trashed -- that the original poster does have a bug somewhere ...
    (microsoft.public.win32.programmer.directx.video)
  • Bluescreen when we try to attach a filter to another device stack in KMDF
    ... Let me start by saying, I know this is the wrong way to do things, but it was the only hack we could figure out with MS's help in the pre-Vista days for working around the extremely quirky behavior of installing PS/2 filter drivers (since 2k, the OS "conveniently" removes any existing filters when you do this... ... we have a PS/2 mouse filter driver that needs to dynamically create a filter on the *keyboard* driver stack. ... We've carefully analyzed that we are guaranteed to do this at the right time to avoid problems with stack depth and the like. ... ExceptionAddress: 8287022c ...
    (microsoft.public.development.device.drivers)
  • Re: Exception Handling - help!
    ... >> invoked during the user filter would have to be on top of the stack, ... > are you sure these routines have access to the faulting frame? ... >> to treat this as a nested exception. ...
    (microsoft.public.dotnet.framework.clr)