rasapi32: Update spec file.
[wine/zf.git] / include / ntdef.h
blob68ced669baace54b55b3752464212c5549f0611c
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 #include <basetsd.h>
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
28 typedef enum _EVENT_TYPE {
29 NotificationEvent,
30 SynchronizationEvent
31 } EVENT_TYPE;
33 typedef enum _TIMER_TYPE {
34 NotificationTimer,
35 SynchronizationTimer
36 } TIMER_TYPE;
38 typedef enum _WAIT_TYPE {
39 WaitAll,
40 WaitAny,
41 WaitNotification
42 } WAIT_TYPE;
44 #ifdef __cplusplus
46 #endif
48 #define NT_SUCCESS(status) (((NTSTATUS)(status)) >= 0)
49 #define NT_INFORMATION(status) ((((NTSTATUS)(status)) & 0xc0000000) == 0x40000000)
50 #define NT_WARNING(status) ((((NTSTATUS)(status)) & 0xc0000000) == 0x80000000)
51 #define NT_ERROR(status) ((((NTSTATUS)(status)) & 0xc0000000) == 0xc0000000)
53 #ifndef BASETYPES
54 #define BASETYPES
55 typedef unsigned char UCHAR, *PUCHAR;
56 typedef unsigned short USHORT, *PUSHORT;
57 #ifdef WINE_USE_LONG
58 typedef unsigned long ULONG, *PULONG;
59 #else
60 typedef unsigned int ULONG, *PULONG;
61 #endif
62 #endif
64 typedef struct _RTL_BALANCED_NODE
66 union
68 struct _RTL_BALANCED_NODE *Children[2];
69 struct
71 struct _RTL_BALANCED_NODE *Left;
72 struct _RTL_BALANCED_NODE *Right;
73 } DUMMYSTRUCTNAME;
74 } DUMMYUNIONNAME;
76 union
78 UCHAR Red : 1;
79 UCHAR Balance : 2;
80 ULONG_PTR ParentValue;
81 } DUMMYUNIONNAME2;
82 } RTL_BALANCED_NODE, *PRTL_BALANCED_NODE;
84 #define RTL_BALANCED_NODE_RESERVED_PARENT_MASK 3
86 #endif /* _NTDEF_ */