?
Solved

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

Posted on 2008-11-12
4
Medium Priority
?
287 Views
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
0
Comment
Question by:romanm
  • 2
  • 2
4 Comments
 
LVL 13

Expert Comment

by:Kelvin_King
ID: 22969714
Are you doing this from a driver or form user mode?
0
 
LVL 3

Author Comment

by:romanm
ID: 23009773
How can I do it from a driver?
0
 
LVL 13

Accepted Solution

by:
Kelvin_King earned 1500 total points
ID: 23010130
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:
http://www.codeguru.com/cpp/w-p/system/devicedriverdevelopment/article.php/c13151

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:
http://www.osronline.com/page.cfm?name=ListServer

Hope that helps
- Kelvin
0
 
LVL 3

Author Closing Comment

by:romanm
ID: 31516099
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.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
Suggested Courses

830 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