3 * Copyright (C) 2003, 2006 ReactOS Team
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 /* COPYRIGHT: See COPYING in the top level directory
20 * PROJECT: ReactOS hive maker
21 * FILE: tools/mkhive/mkhive.h
23 * PROGRAMMER: Eric Kohl
33 #include <host/typedefs.h>
35 #define USE_HOST_WCSFUNCS
36 #include <host/wcsfuncs.h>
38 // Definitions copied from <ntstatus.h>
39 // We only want to include host headers, so we define them manually
40 #define STATUS_SUCCESS ((NTSTATUS)0x00000000)
41 #define STATUS_UNSUCCESSFUL ((NTSTATUS)0xC0000001)
42 #define STATUS_NOT_IMPLEMENTED ((NTSTATUS)0xC0000002)
43 #define STATUS_INVALID_PARAMETER ((NTSTATUS)0xC000000D)
44 #define STATUS_NO_MEMORY ((NTSTATUS)0xC0000017)
45 #define STATUS_INSUFFICIENT_RESOURCES ((NTSTATUS)0xC000009A)
46 #define STATUS_OBJECT_NAME_NOT_FOUND ((NTSTATUS)0xC0000034)
47 #define STATUS_INVALID_PARAMETER_2 ((NTSTATUS)0xC00000F0)
48 #define STATUS_BUFFER_OVERFLOW ((NTSTATUS)0x80000005)
51 RtlAnsiStringToUnicodeString(
52 IN OUT PUNICODE_STRING UniDest
,
53 IN PANSI_STRING AnsiSource
,
54 IN BOOLEAN AllocateDestinationString
);
57 IN OUT PANSI_STRING DestinationString
,
58 IN PCSTR SourceString
);
61 IN OUT PUNICODE_STRING DestinationString
,
62 IN PCWSTR SourceString
);
75 #define HIVE_NO_FILE 2
76 #define VERIFY_REGISTRY_HIVE(hive)
77 extern LIST_ENTRY CmiHiveListHead
;
78 #define ABS_VALUE(V) (((V) < 0) ? -(V) : (V))
81 #define max(a, b) (((a) > (b)) ? (a) : (b))
85 #define min(a, b) (((a) < (b)) ? (a) : (b))
89 #define strncasecmp _strnicmp
90 #define strcasecmp _stricmp
99 #define GCC_PACKED __attribute__((packed))
102 #endif /* __MKHIVE_H__ */