I don’t believe that this is a trivial task.
Some guessing from the address you see in the debugger
is not so hard, but do it programatically isn’t easy.
But some approximation can be done if the address you want
to check comes from either non-paged or paged pool, but not
from other place. Then you can allocate two block from the two
pools and note their addresses. Then free those blocks and try
to calculate some value in the middle. Below is some kind of
pool and above is the other one. But as I noted previously -
this is something useful for limited usage and should not be
considered as correct definitively.
Maybe this helps you or someone who has already solved it
will come with some better method.
Paul
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Ralph Shnelvar
Sent: Wednesday, November 14, 2001 7:14 PM
To: File Systems Developers
Subject: [ntfsd] RE: Determining if PagedPool or NonPagedPool
Dear Pavel:
Well, uh, both. 
It would be nice to be able to do something like
ASSERT(isNonPaged(p));
Ralph
On Wed, 14 Nov 2001 18:53:34 +0100, you wrote:
Programatically or while debugging ?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Ralph Shnelvar
Sent: Wednesday, November 14, 2001 2:44 PM
To: File Systems Developers
Subject: [ntfsd] Determining if PagedPool or NonPagedPool
This may be such a silly question …
Is there a way to test if an address (range of addresses) is
a) in paged pool
b) in nonpaged pool
?
Ralph Shnelvar
You are currently subscribed to ntfsd as: xxxxx@compelson.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntfsd as: xxxxx@dos32.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntfsd as: xxxxx@compelson.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com