BOOLEAN
MmIsAddressValid(
IN PVOID VirtualAddress
);
MmIsAddressValid checks whether a page fault will occur for a read or write operation at a given virtual address.
If no page fault will occur from reading or writing at the given virtual address, MmIsAddressValid returns TRUE.
Even if MmIsAddressValid returns TRUE, accessing the address can cause page faults unless the memory has been locked down or the address is a valid nonpaged pool address.
Callers of MmIsAddressValid must be running at <= DISPATCH_LEVEL.