MmIsAddressValid
TOC
Collapse the table of content
Expand the table of content

MmIsAddressValid routine

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

Warning  We do not recommend using this function.
 

Syntax


BOOLEAN MmIsAddressValid(
  _In_ PVOID VirtualAddress
);

Parameters

VirtualAddress [in]

A pointer to the nonpaged virtual address to check. The caller must ensure that this address cannot be paged out or deleted for the duration of this call. Even after the return from the call, you must not page out or delete this address. If you do page out or delete this address, the return value might be unreliable. Paging out or deleting this address might cause the computer to stop responding (that is, crash).

Return value

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

Remarks

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.

Requirements

Target platform

Universal

Version

Available starting with Windows 2000.

Header

Ntddk.h (include Ntddk.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

IRQL

<=DISPATCH_LEVEL

See also

MmProbeAndLockPages

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft