hello everyone,
i still want to develop a driver that can track all the Irp,but without
answer,does no one can help me?
i am not familiar about develop driver,this time is just so critical.
best regards
ding hao
This is the third time that you’ve asked in as many days, if someone is
going to give an answer they will reply to one of the other posts.
However, if you go and read the other responses under your other posts you
will see that people are very reluctant to give you an answer to this
question. In addition, I don’t think that you are going to be successful in
getting an answer to this question for several reasons:
You don’t indicate why you think you need to track ALL of the IRPs in the
system. It has very limited use outside of debugging/wanting to see how
things work. The fact that you are saying that you’re not an experienced
driver writer indicates that maybe you haven’t fully thought the problem
out. This suggests that you came to the conclusion that you need to hook
IoCallDriver before exploring legitimate solutions to your problem and are
now working backwards. This pretty much always leads to disaster.
There’s no blessed way to do this and all of the ways to achieve it are
major hacks. IRPTracker, for example, has to work differently if it’s the
checked build or if Verifier is running or if it’s Server 2003, and the “or
ifs” go on and on. That dialog that first pops up when it’s running ain’t
kiddin
Getting a driver that tracks all of the IRPs in the system is a pretty
advanced project and requires a thorough understanding of the I/O subsystem
(and I/O completion in particular). Getting the hooks in place is the least
of your problems.
So, I’d recommend familiarizing yourself more with drivers and going back
over your requirements before continuing down this path. If you still decide
to ignore everyone’s advice that this is not a good idea, you’d make more
progress on this time critical matter with WinDBG than sending posts to the
list and waiting for a response.
“shark marian” wrote in message news:xxxxx@ntdev… > hello everyone, > i still want to develop a driver that can track all the Irp,but without > answer,does no one can help me? > i am not familiar about develop driver,this time is just so critical. > best regards > ding hao > > _________________________________________________________________ > Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn >
Actually you already got the answer, why not read the prior responses
carefully?
lots of people want to help you but you are shy to give us the detail
problem you
want to solve. I have tried to reply you yesterday, but finally give it up
because
you were already told what I want to say.If you didn’t familiar enough on
the
device driver & kernel stuff, why not start from a legitimate solution, by
the
limited description on your post, mostly, I think Maxim’s suggestion should
be
the answer: “attach a filter driver on the objects you want to monitor”.
Rgds,
AFei
“shark marian” wrote in message news:xxxxx@ntdev… > hello everyone, > i still want to develop a driver that can track all the Irp,but without > answer,does no one can help me? > i am not familiar about develop driver,this time is just so critical. > best regards > ding hao > > _________________________________________________________________ > Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn > >
hello AFei,
thanks for the reply.
of course i read all the answers about my question,and i know attach a
filter can do something,but i want to filter all the device/drivers,at
first how can i filter some many objects in one driver?then i want to
change the filter object set dynamicly,that is to say if i do not want to
filter floopydisk ,then i can make the filter driver filter anything except
the floppydisk,and can add the floppydisk if i want sometime,i do not know
how to do like this?
best regards
ding hao
There is no acceptable way to do this. It cannot be done safely, and it definitely can’t be done quickly (which you seem to need).
If that’s really all there is to your project then you’re done.
If there was some other goal, and you thought this was a step to get there, please tell us the actual goal and perhaps we can help you find an alternative that will actually work.
-p
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of shark marian
Sent: Tuesday, December 14, 2004 3:21 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] How to track all the Irp?
hello AFei,
thanks for the reply.
of course i read all the answers about my question,and i
know attach a filter can do something,but i want to filter
all the device/drivers,at first how can i filter some many
objects in one driver?then i want to change the filter object
set dynamicly,that is to say if i do not want to filter
floopydisk ,then i can make the filter driver filter anything
except the floppydisk,and can add the floppydisk if i want
sometime,i do not know how to do like this?
best regards
ding hao
Hmmm, but I don’t WANT you mucking around with, or even know about, IRPs
that are bound for my driver so I guess I’ll just have to unhook your hook.
You have been told NO becsuae it is extremely invasive and rude, and because
you have neither the skills nor understanding of the kernel to do it
reliably without the entire driver stack crumbling.
–
The personal opinion of
Gary G. Little
“shark marian” wrote in message news:xxxxx@ntdev… > hello everyone, > i still want to develop a driver that can track all the Irp,but without > answer,does no one can help me? > i am not familiar about develop driver,this time is just so critical. > best regards > ding hao > > _________________________________________________________________ > Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn > >