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
28 typedef enum _EVENT_TYPE
{
33 typedef enum _TIMER_TYPE
{
38 typedef enum _WAIT_TYPE
{
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)
54 typedef unsigned char UCHAR
, *PUCHAR
;
55 typedef unsigned short USHORT
, *PUSHORT
;
57 typedef unsigned long ULONG
, *PULONG
;
59 typedef unsigned int ULONG
, *PULONG
;
62 typedef struct _RTL_BALANCED_NODE
66 struct _RTL_BALANCED_NODE
*Children
[2];
69 struct _RTL_BALANCED_NODE
*Left
;
70 struct _RTL_BALANCED_NODE
*Right
;
78 ULONG_PTR ParentValue
;
80 } RTL_BALANCED_NODE
, *PRTL_BALANCED_NODE
;
82 #define RTL_BALANCED_NODE_RESERVED_PARENT_MASK 3