Undocumented functions of NTDLL

2OO1, 19 February


NtFlushInstructionCache
NtFlushInstructionCache

NTSYSAPI 
NTSTATUS
NTAPI

NtFlushInstructionCache(
IN HANDLE ProcessHandle, IN PVOID BaseAddress, IN ULONG NumberOfBytesToFlush );



Function NtFlushInstructionCache empties execution cache for specified region of code. It shoult be used always after modification of process's executable memory (for example when NtLdr fills imported function's entries).



Requirements:
Library: ntdll.lib


See also:
NtOpenProcess