MmIsAddressValid

BOOLEAN
    MmIsAddressValid(

        IN PVOID  VirtualAddress
        );

MmIsAddressValid checks whether a page fault will occur for a read or write operation at a given virtual address.

Parameters

VirtualAddress
Points to the virtual address to check.

Return Value

If no page fault will occur from reading or writing at the given virtual address, MmIsAddressValid returns TRUE.

Comments

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.

See Also

MmProbeAndLockPages