Moved FlushInstructionCache to ntdll.
This commit is contained in:
parent
7bf7bce0da
commit
e3d8853bb8
|
@ -2740,9 +2740,11 @@ BOOL WINAPI WriteProcessMemory( HANDLE process, LPVOID addr, LPCVOID buffer, SIZ
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI FlushInstructionCache(HANDLE hProcess, LPCVOID lpBaseAddress, SIZE_T dwSize)
|
BOOL WINAPI FlushInstructionCache(HANDLE hProcess, LPCVOID lpBaseAddress, SIZE_T dwSize)
|
||||||
{
|
{
|
||||||
|
NTSTATUS status;
|
||||||
if (GetVersion() & 0x80000000) return TRUE; /* not NT, always TRUE */
|
if (GetVersion() & 0x80000000) return TRUE; /* not NT, always TRUE */
|
||||||
FIXME("(%p,%p,0x%08lx): stub\n",hProcess, lpBaseAddress, dwSize);
|
status = NtFlushInstructionCache( hProcess, lpBaseAddress, dwSize );
|
||||||
return TRUE;
|
if (status) SetLastError( RtlNtStatusToDosError(status) );
|
||||||
|
return !status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -115,7 +115,7 @@
|
||||||
@ stdcall NtEnumerateValueKey (long long long long long long)
|
@ stdcall NtEnumerateValueKey (long long long long long long)
|
||||||
@ stub NtExtendSection
|
@ stub NtExtendSection
|
||||||
@ stdcall NtFlushBuffersFile(long ptr)
|
@ stdcall NtFlushBuffersFile(long ptr)
|
||||||
@ stub NtFlushInstructionCache
|
@ stdcall NtFlushInstructionCache(long ptr long)
|
||||||
@ stdcall NtFlushKey(long)
|
@ stdcall NtFlushKey(long)
|
||||||
@ stdcall NtFlushVirtualMemory(long ptr ptr long)
|
@ stdcall NtFlushVirtualMemory(long ptr ptr long)
|
||||||
@ stub NtFlushWriteBuffer
|
@ stub NtFlushWriteBuffer
|
||||||
|
@ -698,7 +698,7 @@
|
||||||
@ stdcall ZwEnumerateValueKey(long long long ptr long ptr) NtEnumerateValueKey
|
@ stdcall ZwEnumerateValueKey(long long long ptr long ptr) NtEnumerateValueKey
|
||||||
@ stub ZwExtendSection
|
@ stub ZwExtendSection
|
||||||
@ stdcall ZwFlushBuffersFile(long ptr) NtFlushBuffersFile
|
@ stdcall ZwFlushBuffersFile(long ptr) NtFlushBuffersFile
|
||||||
@ stub ZwFlushInstructionCache
|
@ stdcall ZwFlushInstructionCache(long ptr long) NtFlushInstructionCache
|
||||||
@ stdcall ZwFlushKey(long) NtFlushKey
|
@ stdcall ZwFlushKey(long) NtFlushKey
|
||||||
@ stdcall ZwFlushVirtualMemory(long ptr ptr long) NtFlushVirtualMemory
|
@ stdcall ZwFlushVirtualMemory(long ptr ptr long) NtFlushVirtualMemory
|
||||||
@ stub ZwFlushWriteBuffer
|
@ stub ZwFlushWriteBuffer
|
||||||
|
|
|
@ -154,3 +154,20 @@ NTSTATUS WINAPI NtSetInformationProcess(
|
||||||
ProcessHandle,ProcessInformationClass,ProcessInformation,ProcessInformationLength);
|
ProcessHandle,ProcessInformationClass,ProcessInformation,ProcessInformationLength);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/******************************************************************************
|
||||||
|
* NtFlushInstructionCache [NTDLL.@]
|
||||||
|
* ZwFlushInstructionCache [NTDLL.@]
|
||||||
|
*/
|
||||||
|
NTSTATUS WINAPI NtFlushInstructionCache(
|
||||||
|
IN HANDLE ProcessHandle,
|
||||||
|
IN LPCVOID BaseAddress,
|
||||||
|
IN ULONG Size)
|
||||||
|
{
|
||||||
|
#ifdef __i386__
|
||||||
|
TRACE("%p %p %ld - no-op on x86\n", ProcessHandle, BaseAddress, Size );
|
||||||
|
#else
|
||||||
|
FIXME("%p %p %ld\n", ProcessHandle, BaseAddress, Size );
|
||||||
|
#endif
|
||||||
|
return STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
|
@ -1242,6 +1242,7 @@ NTSTATUS WINAPI NtDuplicateObject(HANDLE,HANDLE,HANDLE,PHANDLE,ACCESS_MASK,ULON
|
||||||
NTSTATUS WINAPI NtEnumerateKey(HKEY,ULONG,KEY_INFORMATION_CLASS,void *,DWORD,DWORD *);
|
NTSTATUS WINAPI NtEnumerateKey(HKEY,ULONG,KEY_INFORMATION_CLASS,void *,DWORD,DWORD *);
|
||||||
NTSTATUS WINAPI NtEnumerateValueKey(HKEY,ULONG,KEY_VALUE_INFORMATION_CLASS,PVOID,ULONG,PULONG);
|
NTSTATUS WINAPI NtEnumerateValueKey(HKEY,ULONG,KEY_VALUE_INFORMATION_CLASS,PVOID,ULONG,PULONG);
|
||||||
NTSTATUS WINAPI NtFlushBuffersFile(HANDLE,IO_STATUS_BLOCK*);
|
NTSTATUS WINAPI NtFlushBuffersFile(HANDLE,IO_STATUS_BLOCK*);
|
||||||
|
NTSTATUS WINAPI NtFlushInstructionCache(HANDLE,LPCVOID,ULONG);
|
||||||
NTSTATUS WINAPI NtFlushKey(HKEY);
|
NTSTATUS WINAPI NtFlushKey(HKEY);
|
||||||
NTSTATUS WINAPI NtFlushVirtualMemory(HANDLE,LPCVOID*,ULONG*,ULONG);
|
NTSTATUS WINAPI NtFlushVirtualMemory(HANDLE,LPCVOID*,ULONG*,ULONG);
|
||||||
NTSTATUS WINAPI NtFreeVirtualMemory(HANDLE,PVOID*,ULONG*,ULONG);
|
NTSTATUS WINAPI NtFreeVirtualMemory(HANDLE,PVOID*,ULONG*,ULONG);
|
||||||
|
|
Loading…
Reference in New Issue