how to read the order of attached filter drivers from a base driver?

I need to enumerate the attached drivers of tcpip, on the tcp device,
I need to read their order of attachment
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Are you doing this from a driver or form user mode?
romanmAuthor Commented:
How can I do it from a driver?
first, your filter driver must be on the same TCP device stack. It would be an upper filter.

Once your driver is attached to the stack, it can then enumerate all the lower level driver by sending an IRP_MJ_DEVICE_QUERY

This might give you a place to start:

I have to be honest, Experts Exchange is not the best place to be asking about device driver and kernel mode development.

You'll get more help by posting in the OSR forums:

Hope that helps
- Kelvin

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
romanmAuthor Commented:
Thanks, I figured that much.
I was actually trying to enumerate the filter drivers from a user application, just like OSR's DeviceTree, but I figured they actually attach a driver to each stack, and doing the enum in the driver itself.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.