While I know next to nothing about TDI filters, those of us who have been
doing file system filters since the NT4 days and before are VERY familiar
with IRP stack sizes “hard coded” in the registry for Microsoft drivers
(srv.sys). So I have no doubt that “MSFT-provided AFD.SYS” might do
something like that.
AFAIK, this is still true for SRV, although the default is much more
reasonable than it used to be.
The reason for using the predefined size is that it uses a preallocated pool
of IRPs out of a (perhaps silly) worry about performance.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@hotmail.com
Sent: Wednesday, July 25, 2007 8:08 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] IRP Stack size issue with TDI driver
To be honest, the whole thing seems to be pretty bizzare…
When driver X sends IRP to driver Y, it cannot and should not make any
pre-defined (i.e. hardcoded, obtained from the registry,etc) assumptions
about the stack size of the target device. Therefore, I don’t really think
MSFT-provided AFD.SYS would do something like that. Instead, I would rather
suspect third-party drivers. Are you sure it is not one of those two filters
that you have mentioned whi is a culprit here???
Can you please suggest what should be the right solution for this
problem?
Debug the problem and analyze who is responsible for it. If you discover
that this is third-party TDI filter who is responsible for this behaviour
(and I am pretty sure this is the case here), contact the vendor and demand
fixing their crap - don’t even think about adjusting your driver to its
possible presence on the target machine…
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