// ntifs.h
BOOLEAN MmSetAddressRangeModified(
[in] PVOID Address,
[in] SIZE_T Length
);
View the official Windows Driver Kit DDI referenceNo description available.
The MmSetAddressRangeModified routine marks currently valid pages in the specified range of the system cache as modified.
Address [in]Address of the start of the range.
Length [in]Length of the range in bytes.
MmSetAddressRangeModified returns TRUE if it marked at least one page in the range as modified, FALSE otherwise.
The entire range specified by Address and Length must reside within the system cache.
For more information about memory management, see Memory Management.
Callers of MmSetAddressRangeModified must be running at IRQL < DISPATCH_LEVEL for pageable addresses, and IRQL <= DISPATCH_LEVEL for nonpageable addresses.