mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
finalize types for now, may need validation.
This commit is contained in:
parent
d9fc0ad5e2
commit
4d66c05093
|
|
@ -1,21 +1,16 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <typeinfo>
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <cstddef>
|
#include <stddef.h>
|
||||||
#include <cwchar>
|
|
||||||
|
|
||||||
#define S_OK 0
|
#define S_OK 0
|
||||||
|
|
||||||
typedef unsigned long DWORD;
|
typedef uint32_t DWORD;
|
||||||
typedef int BOOL;
|
typedef int32_t BOOL;
|
||||||
typedef unsigned char BYTE;
|
typedef uint8_t BYTE;
|
||||||
typedef unsigned short WORD;
|
typedef uint16_t WORD;
|
||||||
typedef float FLOAT;
|
typedef float FLOAT;
|
||||||
|
|
||||||
typedef int __int32;
|
typedef int __int32;
|
||||||
|
|
||||||
typedef FLOAT *PFLOAT;
|
typedef FLOAT *PFLOAT;
|
||||||
typedef BOOL *PBOOL;
|
typedef BOOL *PBOOL;
|
||||||
typedef BOOL *LPBOOL;
|
typedef BOOL *LPBOOL;
|
||||||
|
|
@ -25,37 +20,37 @@ typedef int *PINT;
|
||||||
typedef int *LPINT;
|
typedef int *LPINT;
|
||||||
typedef WORD *PWORD;
|
typedef WORD *PWORD;
|
||||||
typedef WORD *LPWORD;
|
typedef WORD *LPWORD;
|
||||||
typedef long *PLONG;
|
typedef int *PLONG;
|
||||||
typedef long *LPLONG;
|
typedef int *LPLONG;
|
||||||
typedef DWORD *PDWORD;
|
typedef DWORD *PDWORD;
|
||||||
typedef DWORD *LPDWORD;
|
typedef DWORD *LPDWORD;
|
||||||
typedef void *LPVOID;
|
typedef void *LPVOID;
|
||||||
typedef const void *LPCVOID;
|
typedef const void *LPCVOID;
|
||||||
typedef void *PVOID;
|
typedef void *PVOID;
|
||||||
typedef unsigned long ULONG;
|
typedef unsigned int ULONG;
|
||||||
|
|
||||||
typedef unsigned char boolean;
|
typedef unsigned char boolean;
|
||||||
|
|
||||||
typedef int INT;
|
typedef int32_t INT;
|
||||||
typedef unsigned int UINT;
|
typedef uint32_t UINT;
|
||||||
typedef unsigned int *PUINT;
|
typedef uint32_t *PUINT;
|
||||||
|
|
||||||
typedef unsigned char byte;
|
typedef unsigned char byte;
|
||||||
typedef long long __int64;
|
typedef long __int64;
|
||||||
typedef unsigned long long __uint64;
|
typedef unsigned long __uint64;
|
||||||
typedef unsigned long DWORD;
|
typedef unsigned int DWORD;
|
||||||
typedef int INT;
|
typedef int INT;
|
||||||
typedef unsigned long ULONG_PTR, *PULONG_PTR;
|
typedef uintptr_t ULONG_PTR, *PULONG_PTR;
|
||||||
typedef ULONG_PTR SIZE_T, *PSIZE_T;
|
typedef ULONG_PTR SIZE_T, *PSIZE_T;
|
||||||
|
|
||||||
typedef __int64 LONG64, *PLONG64;
|
typedef long LONG64, *PLONG64;
|
||||||
|
|
||||||
#define VOID void
|
#define VOID void
|
||||||
typedef char CHAR;
|
typedef char CHAR;
|
||||||
typedef short SHORT;
|
typedef short SHORT;
|
||||||
typedef long LONG;
|
typedef int32_t LONG;
|
||||||
typedef __int64 LONGLONG;
|
typedef long LONGLONG;
|
||||||
typedef __uint64 ULONGLONG;
|
typedef unsigned long ULONGLONG;
|
||||||
|
|
||||||
#define CONST const
|
#define CONST const
|
||||||
typedef wchar_t WCHAR; // wc, 16-bit UNICODE character
|
typedef wchar_t WCHAR; // wc, 16-bit UNICODE character
|
||||||
|
|
@ -84,12 +79,6 @@ typedef CONST CHAR *LPCSTR, *PCSTR;
|
||||||
#define TRUE 1
|
#define TRUE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef void *HANDLE;
|
|
||||||
typedef void *HMODULE;
|
|
||||||
typedef void *HINSTANCE;
|
|
||||||
typedef void *HWND;
|
|
||||||
typedef int errno_t;
|
|
||||||
|
|
||||||
typedef struct _FILETIME {
|
typedef struct _FILETIME {
|
||||||
#ifdef _M_PPCBE
|
#ifdef _M_PPCBE
|
||||||
DWORD dwHighDateTime;
|
DWORD dwHighDateTime;
|
||||||
|
|
@ -156,6 +145,10 @@ typedef union _ULARGE_INTEGER {
|
||||||
|
|
||||||
typedef ULARGE_INTEGER *PULARGE_INTEGER;
|
typedef ULARGE_INTEGER *PULARGE_INTEGER;
|
||||||
|
|
||||||
|
// 360 specifics
|
||||||
|
typedef int32_t HRESULT;
|
||||||
|
typedef void *HANDLE;
|
||||||
|
|
||||||
#define DECLARE_HANDLE(name) typedef HANDLE name
|
#define DECLARE_HANDLE(name) typedef HANDLE name
|
||||||
DECLARE_HANDLE(HINSTANCE);
|
DECLARE_HANDLE(HINSTANCE);
|
||||||
|
|
||||||
|
|
@ -173,4 +166,8 @@ typedef LPVOID PSECURITY_ATTRIBUTES;
|
||||||
typedef LPVOID LPSECURITY_ATTRIBUTES;
|
typedef LPVOID LPSECURITY_ATTRIBUTES;
|
||||||
|
|
||||||
#define __in_ecount(a)
|
#define __in_ecount(a)
|
||||||
#define __in_bcount(a)
|
#define __in_bcount(a)
|
||||||
|
|
||||||
|
#ifndef AUTO_VAR
|
||||||
|
#define AUTO_VAR(_var, _val) auto _var = _val
|
||||||
|
#endif
|
||||||
Loading…
Reference in a new issue