9c46af4e60c6bf3413a9c5ccee3715a0c1924388
[reactos.git] / sdk / tools / mkhive / registry.h
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS hive maker
4 * FILE: tools/mkhive/registry.h
5 * PURPOSE: Registry code
6 */
7
8 #pragma once
9
10 typedef struct _HIVE_LIST_ENTRY
11 {
12 PCSTR HiveName;
13 PCWSTR HiveRegistryPath;
14 PCMHIVE CmHive;
15 PUCHAR SecurityDescriptor;
16 ULONG SecurityDescriptorLength;
17 } HIVE_LIST_ENTRY, *PHIVE_LIST_ENTRY;
18
19 #define MAX_NUMBER_OF_REGISTRY_HIVES 7
20 extern HIVE_LIST_ENTRY RegistryHives[];
21
22 #define ERROR_SUCCESS 0L
23 #define ERROR_UNSUCCESSFUL 1L
24 #define ERROR_FILE_NOT_FOUND 2L
25 #define ERROR_OUTOFMEMORY 14L
26 #define ERROR_INVALID_PARAMETER 87L
27 #define ERROR_MORE_DATA 234L
28 #define ERROR_NO_MORE_ITEMS 259L
29
30 #define REG_NONE 0
31 #define REG_SZ 1
32 #define REG_EXPAND_SZ 2
33 #define REG_BINARY 3
34 #define REG_DWORD 4
35 #define REG_DWORD_LITTLE_ENDIAN 4
36 #define REG_DWORD_BIG_ENDIAN 5
37 #define REG_LINK 6
38 #define REG_MULTI_SZ 7
39 #define REG_RESOURCE_LIST 8
40 #define REG_FULL_RESOURCE_DESCRIPTOR 9
41 #define REG_RESOURCE_REQUIREMENTS_LIST 10
42 #define REG_QWORD 11
43 #define REG_QWORD_LITTLE_ENDIAN 11
44
45 VOID
46 RegInitializeRegistry(
47 IN PCSTR HiveList);
48
49 VOID
50 RegShutdownRegistry(VOID);
51
52 /* EOF */