FlushInstructionCache

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
);
 

Parameters

hProcess
Handle to the process that has an instruction cache to flush.
lpBaseAddress
Pointer to the base of the region to be flushed. This parameter can be NULL.
dwSize
Specifies the length of the region to be flushed if the lpBaseAddress parameter is not NULL.

Return Values

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.

QuickInfo

  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.

See Also

Debugging Overview, Debugging Functions