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

Posted on 2008-11-12
Last Modified: 2012-05-05
I need to enumerate the attached drivers of tcpip, on the tcp device,
I need to read their order of attachment
Question by:romanm
    LVL 13

    Expert Comment

    Are you doing this from a driver or form user mode?
    LVL 3

    Author Comment

    How can I do it from a driver?
    LVL 13

    Accepted Solution

    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
    LVL 3

    Author Closing Comment

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Article by: SunnyDark
    This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
    This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
    The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
    The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now