about summary refs log tree commit diff stats
path: root/wow64/include
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-06-07 22:17:38 +0800
committerGitHub <noreply@github.com>2025-06-07 16:17:38 +0200
commit4fc5885d744b8eacb5018ea9ddeaf5b7849a0378 (patch)
tree124bd6bfd5b7c7195dd9469e9013107a5375c464 /wow64/include
parent4539eccd4016779d333f63b5cd1c69dace39b571 (diff)
downloadbox64-4fc5885d744b8eacb5018ea9ddeaf5b7849a0378.tar.gz
box64-4fc5885d744b8eacb5018ea9ddeaf5b7849a0378.zip
[WOW64] Moved things around for the future (#2712)
Diffstat (limited to 'wow64/include')
-rw-r--r--wow64/include/wine/compiler.h71
-rw-r--r--wow64/include/wine/debug.h8
2 files changed, 0 insertions, 79 deletions
diff --git a/wow64/include/wine/compiler.h b/wow64/include/wine/compiler.h
deleted file mode 100644
index f206c40d..00000000
--- a/wow64/include/wine/compiler.h
+++ /dev/null
@@ -1,71 +0,0 @@
-#ifndef __COMPILER_H_
-#define __COMPILER_H_
-
-#include <stdint.h>
-
-/* Things missing from mingw64 right now */
-#define ThreadWow64Context                 (29)
-#define WOW64_TLS_CPURESERVED              (1)
-#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;
-    USHORT Machine;
-} WOW64_CPURESERVED;
-
-typedef struct _XMM_SAVE_AREA32 {
-    WORD  ControlWord;
-    WORD  StatusWord;
-    BYTE  TagWord;
-    BYTE  Reserved1;
-    WORD  ErrorOpcode;
-    DWORD ErrorOffset;
-    WORD  ErrorSelector;
-    WORD  Reserved2;
-    DWORD DataOffset;
-    WORD  DataSelector;
-    WORD  Reserved3;
-    DWORD MxCsr;
-    DWORD MxCsr_Mask;
-    M128A FloatRegisters[8];
-    M128A XmmRegisters[16];
-    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);
-NTSYSAPI void WINAPI RtlRaiseException(EXCEPTION_RECORD*);
-
-static inline uintptr_t calculate_fs(void)
-{
-    /* until mingw64 has WowTebOffset in the TEB struct */
-    uint8_t* teb = (uint8_t*)NtCurrentTeb();
-    return (uintptr_t)(teb + *(int32_t*)(teb + 0x180c));
-}
-
-#endif //__COMPILER_H_
diff --git a/wow64/include/wine/debug.h b/wow64/include/wine/debug.h
deleted file mode 100644
index e903d604..00000000
--- a/wow64/include/wine/debug.h
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef __WINE_DEBUG_H__
-#define __WINE_DEBUG_H__
-
-#include <windef.h>
-
-int __cdecl __wine_dbg_output( const char *str );
-
-#endif // __WINE_DEBUG_H__
\ No newline at end of file