Enumerate current filter drivers

Hi,

I am trying to make a utility for learning purposes that can list all the filter drivers installed to an device e.g. Keyboard.

Can I traverse the DeviceObject->AttachedDevice list and get the details about all the drivers/filter drivers attached?

thanks in advance.

Pahgee

No you cannot use this pointer directly. Instead see
IoGetAttachedDeviceReference and IoGetLowerDeviceObject. The first
gets you the top of the stack, the next traverses that stack
downwards.

Read the docs carefully for how to use these functions.

Mark Roddy

On Tue, Feb 23, 2010 at 5:29 AM, wrote:
> Hi,
>
> I am trying to make a utility for learning purposes that can list all the filter drivers installed to an device e.g. Keyboard.
>
> Can I traverse the DeviceObject->AttachedDevice list and get the details about all the drivers/filter drivers attached?
>
> thanks in advance.
>
> Pahgee
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>

Thanks Mark,

While going through APIs you provided i came across IoEnumerateDeviceObjectList. I guess it is a little easier way to go. Any comments?

Thanks,

fuaad

No, that gives you all the devices for a particular driver which can span many stacks

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Tuesday, February 23, 2010 10:59 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Enumerate current filter drivers

Thanks Mark,

While going through APIs you provided i came across IoEnumerateDeviceObjectList. I guess it is a little easier way to go. Any comments?

Thanks,

fuaad


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

> No, that gives you all the devices for a particular driver which can span many stacks

Actually, the OP speaks about AttachedDevice field, while you speak about NextDevice one - IIRC, the former is documented and the latter is not…

Anton Bassov

He asked about IoEnumerateDeviceObjectList, which is the safe way to walk across the NextDevice fields for devices created by a driver. That is why I told him that is the wrong api. Look up the API before you admonish.

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@hotmail.com
Sent: Tuesday, February 23, 2010 11:30 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Enumerate current filter drivers

No, that gives you all the devices for a particular driver which can span many stacks

Actually, the OP speaks about AttachedDevice field, while you speak about NextDevice one - IIRC, the former is documented and the latter is not…

Anton Bassov


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer