msxml3/tests: Add test saving XML with non-english characters.
[wine.git] / include / ntdef.h
blob92366c3f3bb9eadbc3b46f6217b76efbe125a007
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>
23 #include <specstrings.h>
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
29 typedef enum _EVENT_TYPE {
30 NotificationEvent,
31 SynchronizationEvent
32 } EVENT_TYPE;
34 typedef enum _TIMER_TYPE {
35 NotificationTimer,
36 SynchronizationTimer
37 } TIMER_TYPE;
39 typedef enum _WAIT_TYPE {
40 WaitAll,
41 WaitAny,
42 WaitNotification
43 } WAIT_TYPE;
45 #ifdef __cplusplus
47 #endif
49 #define NT_SUCCESS(status) (((NTSTATUS)(status)) >= 0)
50 #define NT_INFORMATION(status) ((((NTSTATUS)(status)) & 0xc0000000) == 0x40000000)
51 #define NT_WARNING(status) ((((NTSTATUS)(status)) & 0xc0000000) == 0x80000000)
52 #define NT_ERROR(status) ((((NTSTATUS)(status)) & 0xc0000000) == 0xc0000000)
54 #ifndef BASETYPES
55 #define BASETYPES
56 typedef unsigned char UCHAR, *PUCHAR;
57 typedef unsigned short USHORT, *PUSHORT;
58 #if !defined(__LP64__) && !defined(WINE_NO_LONG_TYPES)
59 typedef unsigned long ULONG, *PULONG;
60 #else
61 typedef unsigned int ULONG, *PULONG;
62 #endif
63 #endif
65 typedef struct _RTL_BALANCED_NODE
67 union
69 struct _RTL_BALANCED_NODE *Children[2];
70 struct
72 struct _RTL_BALANCED_NODE *Left;
73 struct _RTL_BALANCED_NODE *Right;
74 } DUMMYSTRUCTNAME;
75 } DUMMYUNIONNAME;
77 union
79 UCHAR Red : 1;
80 UCHAR Balance : 2;
81 ULONG_PTR ParentValue;
82 } DUMMYUNIONNAME2;
83 } RTL_BALANCED_NODE, *PRTL_BALANCED_NODE;
85 #define RTL_BALANCED_NODE_RESERVED_PARENT_MASK 3
87 #endif /* _NTDEF_ */