kernel32/tests: Fix a race condition in test_QueryInformationJobObject().
[wine.git] / include / ntdef.h
blob014102ac74ed0400ff94013b53f9659fdbaa8dfe
1 /*
2 * Copyright (C) 2015 Austin English
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef _NTDEF_
20 #define _NTDEF_
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
26 typedef enum _EVENT_TYPE {
27 NotificationEvent,
28 SynchronizationEvent
29 } EVENT_TYPE;
31 typedef enum _TIMER_TYPE {
32 NotificationTimer,
33 SynchronizationTimer
34 } TIMER_TYPE;
36 typedef enum _WAIT_TYPE {
37 WaitAll,
38 WaitAny,
39 WaitNotification
40 } WAIT_TYPE;
42 #ifdef __cplusplus
44 #endif
46 #define NT_SUCCESS(status) (((NTSTATUS)(status)) >= 0)
47 #define NT_INFORMATION(status) ((((NTSTATUS)(status)) & 0xc0000000) == 0x40000000)
48 #define NT_WARNING(status) ((((NTSTATUS)(status)) & 0xc0000000) == 0x80000000)
49 #define NT_ERROR(status) ((((NTSTATUS)(status)) & 0xc0000000) == 0xc0000000)
51 #endif /* _NTDEF_ */