1 #ifndef __WINE_WINBASE_H
2 #define __WINE_WINBASE_H
6 #define WAIT_FAILED 0xffffffff
7 #define WAIT_OBJECT_0 0
8 #define WAIT_ABANDONED STATUS_ABANDONED_WAIT_0
9 #define WAIT_ABANDONED_0 STATUS_ABANDONED_WAIT_0
10 #define WAIT_TIMEOUT STATUS_TIMEOUT
12 #define PAGE_NOACCESS 0x01
13 #define PAGE_READONLY 0x02
14 #define PAGE_READWRITE 0x04
15 #define PAGE_WRITECOPY 0x08
16 #define PAGE_EXECUTE 0x10
17 #define PAGE_EXECUTE_READ 0x20
18 #define PAGE_EXECUTE_READWRITE 0x40
19 #define PAGE_EXECUTE_WRITECOPY 0x80
20 #define PAGE_GUARD 0x100
21 #define PAGE_NOCACHE 0x200
23 #define MEM_COMMIT 0x00001000
24 #define MEM_RESERVE 0x00002000
25 #define MEM_DECOMMIT 0x00004000
26 #define MEM_RELEASE 0x00008000
27 #define MEM_FREE 0x00010000
28 #define MEM_PRIVATE 0x00020000
29 #define MEM_MAPPED 0x00040000
30 #define MEM_TOP_DOWN 0x00100000
32 #define SEC_FILE 0x00800000
33 #define SEC_IMAGE 0x01000000
34 #define SEC_RESERVE 0x04000000
35 #define SEC_COMMIT 0x08000000
36 #define SEC_NOCACHE 0x10000000
39 #define FILE_CURRENT 1
42 #define FILE_CASE_SENSITIVE_SEARCH 0x00000001
43 #define FILE_CASE_PRESERVED_NAMES 0x00000002
44 #define FILE_UNICODE_ON_DISK 0x00000004
45 #define FILE_PERSISTENT_ACLS 0x00000008
47 #define FILE_MAP_COPY 0x00000001
48 #define FILE_MAP_WRITE 0x00000002
49 #define FILE_MAP_READ 0x00000004
50 #define FILE_MAP_ALL_ACCESS 0x000f001f
52 #define FS_CASE_SENSITIVE FILE_CASE_SENSITIVE_SEARCH
53 #define FS_CASE_IS_PRESERVED FILE_CASE_PRESERVED_NAMES
54 #define FS_UNICODE_STORED_ON_DISK FILE_UNICODE_ON_DISK
56 /*WINAPI int SetErrorMode(int);*/
58 #define STATUS_SUCCESS 0x00000000
59 #define STATUS_WAIT_0 0x00000000
60 #define STATUS_ABANDONED_WAIT_0 0x00000080
61 #define STATUS_USER_APC 0x000000C0
62 #define STATUS_TIMEOUT 0x00000102
63 #define STATUS_PENDING 0x00000103
64 #define STATUS_GUARD_PAGE_VIOLATION 0x80000001
65 #define STATUS_DATATYPE_MISALIGNMENT 0x80000002
66 #define STATUS_BREAKPOINT 0x80000003
67 #define STATUS_SINGLE_STEP 0x80000004
68 #define STATUS_BUFFER_OVERFLOW 0x80000005
69 #define STATUS_ACCESS_VIOLATION 0xC0000005
70 #define STATUS_IN_PAGE_ERROR 0xC0000006
71 #define STATUS_INVALID_PARAMETER 0xC000000D
72 #define STATUS_NO_MEMORY 0xC0000017
73 #define STATUS_ILLEGAL_INSTRUCTION 0xC000001D
74 #define STATUS_BUFFER_TOO_SMALL 0xC0000023
75 #define STATUS_NONCONTINUABLE_EXCEPTION 0xC0000025
76 #define STATUS_INVALID_DISPOSITION 0xC0000026
77 #define STATUS_UNKNOWN_REVISION 0xC0000058
78 #define STATUS_INVALID_SECURITY_DESCR 0xC0000079
79 #define STATUS_ARRAY_BOUNDS_EXCEEDED 0xC000008C
80 #define STATUS_FLOAT_DENORMAL_OPERAND 0xC000008D
81 #define STATUS_FLOAT_DIVIDE_BY_ZERO 0xC000008E
82 #define STATUS_FLOAT_INEXACT_RESULT 0xC000008F
83 #define STATUS_FLOAT_INVALID_OPERATION 0xC0000090
84 #define STATUS_FLOAT_OVERFLOW 0xC0000091
85 #define STATUS_FLOAT_STACK_CHECK 0xC0000092
86 #define STATUS_FLOAT_UNDERFLOW 0xC0000093
87 #define STATUS_INTEGER_DIVIDE_BY_ZERO 0xC0000094
88 #define STATUS_INTEGER_OVERFLOW 0xC0000095
89 #define STATUS_PRIVILEGED_INSTRUCTION 0xC0000096
90 #define STATUS_INVALID_PARAMETER_2 0xC00000F0
91 #define STATUS_STACK_OVERFLOW 0xC00000FD
92 #define STATUS_CONTROL_C_EXIT 0xC000013A
94 #define DUPLICATE_CLOSE_SOURCE 0x00000001
95 #define DUPLICATE_SAME_ACCESS 0x00000002
120 /* Could this type be considered opaque? */
125 HANDLE32 OwningThread
;
126 HANDLE32 LockSemaphore
;
131 DWORD dwOSVersionInfoSize
;
132 DWORD dwMajorVersion
;
133 DWORD dwMinorVersion
;
136 CHAR szCSDVersion
[128];
140 DWORD dwOSVersionInfoSize
;
141 DWORD dwMajorVersion
;
142 DWORD dwMinorVersion
;
145 WCHAR szCSDVersion
[128];
148 DECL_WINELIB_TYPE_AW(OSVERSIONINFO
);
150 #define VER_PLATFORM_WIN32s 0
151 #define VER_PLATFORM_WIN32_WINDOWS 1
152 #define VER_PLATFORM_WIN32_NT 2
154 /*DWORD WINAPI GetVersion( void );*/
155 BOOL32
GetVersionEx32A(OSVERSIONINFO32A
*);
156 BOOL32
GetVersionEx32W(OSVERSIONINFO32W
*);
157 #define GetVersionEx WINELIB_NAME_AW(GetVersionEx)
159 /*int WinMain(HINSTANCE, HINSTANCE prev, char *cmd, int show);*/
161 HACCEL32
LoadAcceleratorsA( HINSTANCE32
, const char *);
163 void DeleteCriticalSection(CRITICAL_SECTION
*lpCrit
);
164 void EnterCriticalSection(CRITICAL_SECTION
*lpCrit
);
165 void InitializeCriticalSection(CRITICAL_SECTION
*lpCrit
);
166 void LeaveCriticalSection(CRITICAL_SECTION
*lpCrit
);
167 HANDLE32
OpenProcess(DWORD access
, BOOL32 inherit
, DWORD id
);
168 int TerminateProcess(HANDLE32 h
, int ret
);
170 #endif /* __WINE_WINBASE_H */