major fixes of my shit code

This commit is contained in:
Mohamed Ashraf
2026-03-02 08:58:33 +04:00
parent 769d9ceb0d
commit dcb2c43944
5 changed files with 65 additions and 120 deletions

View File

@@ -5,6 +5,7 @@
#include <cstdint>
#include <cstring>
#include <string>
#define TRUE true
#define FALSE false
@@ -37,45 +38,23 @@ typedef struct {
long long QuadPart;
LONG HighPart;
} LARGE_INTEGER;
typedef long long LONGLONG;
typedef size_t SIZE_T;
typedef std::wstring LPWSTR;
// https://learn.microsoft.com/en-us/windows/win32/api/minwinbase/ns-minwinbase-filetime
typedef struct _FILETIME {
DWORD dwLowDateTime;
DWORD dwHighDateTime;
} FILETIME, *PFILETIME, *LPFILETIME;
typedef short SHORT;
typedef struct {
int xuidInvitee;
int xuidInviter;
DWORD dwTitleID;
int hostInfo;
bool fFromGameInvite;
} XINVITE_INFO, * PXINVITE_INFO;
typedef VOID* XMEMCOMPRESSION_CONTEXT;
typedef VOID* XMEMDECOMPRESSION_CONTEXT;
typedef XINVITE_INFO INVITE_INFO;
typedef float FLOAT;
typedef struct HXUIOBJ {
// Stub fields representing the actual Xbox HXUIOBJ structure.
int id;
const char* name;
} HXUIOBJ;
#include "../x64headers/extraX64.h"
typedef struct _RTL_CRITICAL_SECTION {
// //
// // The following field is used for blocking when there is contention for
// // the resource
// //
//
union {
ULONG_PTR RawEvent[4];
} Synchronization;
//
// //
// // The following three fields control entering and exiting the critical
// // section for the resource
// //
//
LONG LockCount;
LONG RecursionCount;
HANDLE OwningThread;
} RTL_CRITICAL_SECTION, *PRTL_CRITICAL_SECTION;
typedef RTL_CRITICAL_SECTION CRITICAL_SECTION;
#endif // WLINUX_H
#endif // WLINUX_H