]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - include/misc_def.h
Updating Windows compile guide after the major overhaul of Windows
[xonotic/netradiant.git] / include / misc_def.h
1 #ifndef _WIN32
2
3 #define WINAPI
4 #ifndef APIENTRY
5         #define APIENTRY
6 #endif
7
8 typedef void* HMODULE;
9 typedef void* LPVOID;
10 typedef char* LPCSTR;
11 typedef char* LPSTR;
12
13 #define IsEqualGUID(a,b) (memcmp(&a,&b,sizeof(a)) == 0)
14
15 #ifndef GUID_DEFINED
16 #define GUID_DEFINED
17 typedef struct _GUID
18 {
19   unsigned long  Data1;
20   unsigned short Data2;
21   unsigned short Data3;
22   unsigned char  Data4[8];
23 } GUID;
24 #endif
25  
26 #if defined(__cplusplus)
27 #ifndef _REFGUID_DEFINED
28 #define _REFGUID_DEFINED
29 #define REFGUID const GUID &
30 #endif // !_REFGUID_DEFINED
31 #endif
32
33 // Message box constants
34 #define MB_OK                       0x00000000L
35 #define MB_OKCANCEL                 0x00000001L
36 #define MB_ABORTRETRYIGNORE         0x00000002L
37 #define MB_YESNOCANCEL              0x00000003L
38 #define MB_YESNO                    0x00000004L
39 #define MB_RETRYCANCEL              0x00000005L
40
41 #define MB_ICONHAND                 0x00000010L
42 #define MB_ICONQUESTION             0x00000020L
43 #define MB_ICONEXCLAMATION          0x00000030L
44 #define MB_ICONASTERISK             0x00000040L
45
46 #define MB_USERICON                 0x00000080L
47 #define MB_ICONWARNING              MB_ICONEXCLAMATION
48 #define MB_ICONERROR                MB_ICONHAND
49 #define MB_ICONINFORMATION          MB_ICONASTERISK
50 #define MB_ICONSTOP                 MB_ICONHAND
51
52 #define MB_TYPEMASK                 0x0000000FL
53 #define MB_ICONMASK                 0x000000F0L
54 #define MB_DEFMASK                  0x00000F00L
55 #define MB_MODEMASK                 0x00003000L
56 #define MB_MISCMASK                 0x0000C000L
57
58 #define IDOK                1
59 #define IDCANCEL            2
60 #define IDABORT             3
61 #define IDRETRY             4
62 #define IDIGNORE            5
63 #define IDYES               6
64 #define IDNO                7 
65
66 #endif