The FlushInstructionCache function flushes the instruction cache for the specified process. This function is valid only on multiprocessor computers.
BOOL FlushInstructionCache(
HANDLE hProcess, // handle to process with cache to flush
LPCVOID lpBaseAddress, // pointer to region to flush
DWORD dwSize // length of region to flush
);
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Windows 95 and Windows 98: The FlushInstructionCache function always returns TRUE. Windows 95 and Windows 98 support only single-processor computers.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winbase.h.
Import Library: Use kernel32.lib.
Debugging Overview, Debugging Functions