about summary refs log tree commit diff stats
path: root/wow64/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'wow64/compiler.h')
-rw-r--r--wow64/compiler.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/wow64/compiler.h b/wow64/compiler.h
index f0697357..eac844e5 100644
--- a/wow64/compiler.h
+++ b/wow64/compiler.h
@@ -9,6 +9,23 @@
 #define WOW64_TLS_MAX_NUMBER (19)
 #define WOW64_CPURESERVED_FLAG_RESET_STATE (1)
 
+typedef enum _MEMORY_INFORMATION_CLASS {
+    MemoryBasicInformation,
+    MemoryWorkingSetInformation,
+    MemoryMappedFilenameInformation,
+    MemoryRegionInformation,
+    MemoryWorkingSetExInformation,
+    MemorySharedCommitInformation,
+    MemoryImageInformation,
+    MemoryRegionInformationEx,
+    MemoryPrivilegedBasicInformation,
+    MemoryEnclaveImageInformation,
+    MemoryBasicInformationCapped,
+    MemoryPhysicalContiguityInformation,
+    MemoryBadInformation,
+    MemoryBadInformationAllProcesses,
+} MEMORY_INFORMATION_CLASS;
+
 typedef struct _WOW64_CPURESERVED
 {
     USHORT Flags;
@@ -34,10 +51,13 @@ typedef struct _XMM_SAVE_AREA32 {
     BYTE  Reserved4[96];
 } XMM_SAVE_AREA32;
 
+#define NtCurrentProcess() ( (HANDLE)(LONG_PTR) -1 )
+
 NTSTATUS WINAPI RtlWow64GetCurrentCpuArea(USHORT *, void **, void **);
 NTSTATUS  WINAPI Wow64SystemServiceEx(UINT, UINT*);
 NTSYSAPI NTSTATUS WINAPI LdrGetDllHandle(LPCWSTR, ULONG, const UNICODE_STRING*, HMODULE*);
 NTSYSAPI NTSTATUS WINAPI NtContinue(PCONTEXT, BOOLEAN);
+NTSYSAPI NTSTATUS WINAPI NtQueryVirtualMemory(HANDLE, LPCVOID, MEMORY_INFORMATION_CLASS, PVOID, SIZE_T, SIZE_T*);
 NTSYSAPI void* WINAPI RtlFindExportedRoutineByName(HMODULE, const char*);
 NTSYSAPI void DECLSPEC_NORETURN WINAPI RtlRaiseStatus(NTSTATUS);