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