ntdll: Reimplement DbgPrint* using DBG_PRINTEXCEPTION_C.
[wine.git] / include / ntdef.h
blob069e86575b81bf904d770a6bd8b5d39f74b39688
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 #define BASETYPES
54 typedef unsigned char UCHAR, *PUCHAR;
55 typedef unsigned short USHORT, *PUSHORT;
56 #ifdef WINE_USE_LONG
57 typedef unsigned long ULONG, *PULONG;
58 #else
59 typedef unsigned int ULONG, *PULONG;
60 #endif
62 typedef struct _RTL_BALANCED_NODE
64 union
66 struct _RTL_BALANCED_NODE *Children[2];
67 struct
69 struct _RTL_BALANCED_NODE *Left;
70 struct _RTL_BALANCED_NODE *Right;
71 } DUMMYSTRUCTNAME;
72 } DUMMYUNIONNAME;
74 union
76 UCHAR Red : 1;
77 UCHAR Balance : 2;
78 ULONG_PTR ParentValue;
79 } DUMMYUNIONNAME2;
80 } RTL_BALANCED_NODE, *PRTL_BALANCED_NODE;
82 #define RTL_BALANCED_NODE_RESERVED_PARENT_MASK 3
84 #endif /* _NTDEF_ */