Undocumented functions of NTDLL

2OO4, 28 January


NtFlushVirtualMemory
NtFlushVirtualMemory

NTSYSAPI 
NTSTATUS
NTAPI

NtFlushVirtualMemory(
IN HANDLE ProcessHandle, IN OUT PVOID *BaseAddress, IN OUT PULONG NumberOfBytesToFlush, OUT PIO_STATUS_BLOCK IoStatusBlock );




NtFlushVirtualMemory flushes mapped section view to file.



WARNING: Two (or more) memory pages mapped in different calls of NtMapViewOfSection cannot be flushed in one function call, even if both has the same SECTION as a source.



Documented by:
Tomasz Nowak



Requirements:
Library: ntdll.lib


See also:
NtCreateSection
NtMapViewOfSection
NtOpenSection
NtUnmapViewOfSection