JSRF-Decompilation/decompile/src/XDK/Win32.h
KeybadeBlox e58f774d82 Add various data structures
Stuff needed to get Core.obj delinking again.
2026-03-20 23:29:02 -04:00

74 lines
1.3 KiB
C

/* JSRF Decompilation: XDK/Win32.h
Definitions normally provided by Windows headers.
*/
#ifndef WIN32_H
#define WIN32_H
#ifdef __cplusplus
extern "C" {
#endif
// The famous Win32 typedefs
typedef unsigned char UCHAR;
typedef char CHAR;
typedef unsigned short USHORT;
typedef short SHORT;
typedef unsigned int UINT;
typedef int INT;
typedef unsigned long ULONG;
typedef long LONG;
typedef unsigned __int64 ULONGLONG;
typedef __int64 LONGLONG;
typedef unsigned char BYTE;
typedef unsigned short WORD;
typedef unsigned long DWORD;
typedef void VOID;
typedef void * LPVOID;
typedef unsigned long SIZE_T;
typedef float FLOAT;
typedef int BOOL;
typedef char * LPCSTR;
#define TRUE 1
#define FALSE 0
// 64-bit integer compatibility type
union LARGE_INTEGER {
struct {
DWORD LowPart;
LONG HighPart;
} u;
LONGLONG QuadPart;
};
typedef void * HANDLE;
// Return codes
typedef long HRESULT;
#define ERROR_SUCCESS 0L
#define E_OUTOFMEMORY 0x8007000EL
// Standard Win32 functions
VOID __stdcall Sleep(DWORD dwMilliseconds);
LPVOID __stdcall VirtualAlloc(
LPVOID lpAddress,
SIZE_T dwSize,
DWORD flAllocationType,
DWORD flProtect
);
#ifdef __cplusplus
}
#endif
#endif