forked from gildor2/UEViewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Win32Types.h
57 lines (53 loc) · 1.62 KB
/
Win32Types.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef __WIN32_TYPES_H__
#define __WIN32_TYPES_H__
// This file contains all Windows type definitions which are used in project headers.
// It allows to avoid doing #include <windows.h> in all source files, that header should
// be included only when needed. If some cpp file has #include for both windows.h and this
// file, windows.h should be included first, so definitions in this header will be simply
// ignored. Otherwise type conflicts would appear.
// Good reference: UE4/Engine/Source/Runtime/Core/Public/Windows/MinimalWindowsApi.h
#if _WIN32
# ifndef APIENTRY
# define APIENTRY __stdcall
# endif
# ifndef WINAPI
# define WINAPI __stdcall
# endif
# ifndef CALLBACK
# define CALLBACK __stdcall
# endif
# ifndef WINGDIAPI
# define WINGDIAPI
typedef void* HANDLE;
#ifndef _WIN64
typedef int INT_PTR;
typedef unsigned int UINT_PTR;
typedef long LONG_PTR;
typedef unsigned long ULONG_PTR;
#else
typedef __int64 INT_PTR;
typedef unsigned __int64 UINT_PTR;
typedef __int64 LONG_PTR;
typedef unsigned __int64 ULONG_PTR;
#endif
typedef unsigned HDC;
typedef HANDLE HGLRC;
typedef const char * LPCSTR;
typedef int BOOL;
typedef unsigned char BYTE;
typedef unsigned short WORD;
typedef unsigned int DWORD;
typedef unsigned int UINT;
typedef HANDLE HWND;
typedef HANDLE HMENU;
typedef UINT_PTR WPARAM;
typedef LONG_PTR LPARAM;
typedef int (APIENTRY *PROC)();
typedef void PIXELFORMATDESCRIPTOR; // structure
typedef PIXELFORMATDESCRIPTOR * LPPIXELFORMATDESCRIPTOR;
# endif // WINGDIAPI
# ifndef CONST
# define CONST const
# endif
#endif // _WIN32
#endif // __WIN32_TYPES_H__