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
23 #include <specstrings.h>
29 typedef enum _EVENT_TYPE
{
34 typedef enum _TIMER_TYPE
{
39 typedef enum _WAIT_TYPE
{
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)
56 typedef unsigned char UCHAR
, *PUCHAR
;
57 typedef unsigned short USHORT
, *PUSHORT
;
59 typedef unsigned long ULONG
, *PULONG
;
61 typedef unsigned int ULONG
, *PULONG
;
65 typedef struct _RTL_BALANCED_NODE
69 struct _RTL_BALANCED_NODE
*Children
[2];
72 struct _RTL_BALANCED_NODE
*Left
;
73 struct _RTL_BALANCED_NODE
*Right
;
81 ULONG_PTR ParentValue
;
83 } RTL_BALANCED_NODE
, *PRTL_BALANCED_NODE
;
85 #define RTL_BALANCED_NODE_RESERVED_PARENT_MASK 3