2 * PROJECT: registry manipulation library
3 * LICENSE: GPL - See COPYING in the top level directory
4 * COPYRIGHT: Copyright 2005 Filip Navara <navaraf@reactos.org>
5 * Copyright 2001 - 2005 Eric Kohl
11 #define REG_INIT_BLOCK_LIST_SIZE 32
12 #define REG_INIT_HASH_TABLE_SIZE 3
13 #define REG_EXTEND_HASH_TABLE_SIZE 4
14 #define REG_VALUE_LIST_CELL_MULTIPLE 4
19 #define CM_KEY_INDEX_ROOT 0x6972
20 #define CM_KEY_INDEX_LEAF 0x696c
21 #define CM_KEY_FAST_LEAF 0x666c
22 #define CM_KEY_HASH_LEAF 0x686c
27 #define CM_KEY_NODE_SIGNATURE 0x6B6E
28 #define CM_LINK_NODE_SIGNATURE 0x6B6C
29 #define CM_KEY_VALUE_SIGNATURE 0x6B76
34 #define KEY_IS_VOLATILE 0x01
35 #define KEY_HIVE_EXIT 0x02
36 #define KEY_HIVE_ENTRY 0x04
37 #define KEY_NO_DELETE 0x08
38 #define KEY_SYM_LINK 0x10
39 #define KEY_COMP_NAME 0x20
40 #define KEY_PREFEF_HANDLE 0x40
41 #define KEY_VIRT_MIRRORED 0x80
42 #define KEY_VIRT_TARGET 0x100
43 #define KEY_VIRTUAL_STORE 0x200
48 #define VALUE_COMP_NAME 0x0001
51 #include <host/pshpack1.h>
57 // For memory-mapped Hives
59 typedef struct _CM_VIEW_OF_FILE
61 LIST_ENTRY LRUViewList
;
62 LIST_ENTRY PinViewList
;
68 } CM_VIEW_OF_FILE
, *PCM_VIEW_OF_FILE
;
71 // Children of Key Notes
73 typedef struct _CHILD_LIST
77 } CHILD_LIST
, *PCHILD_LIST
;
80 // Node Key Reference to Parents
82 typedef struct _CM_KEY_REFERENCE
86 } CM_KEY_REFERENCE
, *PCM_KEY_REFERENCE
;
91 typedef struct _CM_KEY_NODE
95 LARGE_INTEGER LastWriteTime
;
98 ULONG SubKeyCounts
[HTYPE_COUNT
];
103 HCELL_INDEX SubKeyLists
[HTYPE_COUNT
];
104 CHILD_LIST ValueList
;
106 CM_KEY_REFERENCE ChildHiveReference
;
108 HCELL_INDEX Security
;
112 ULONG MaxValueNameLen
;
113 ULONG MaxValueDataLen
;
117 WCHAR Name
[ANYSIZE_ARRAY
];
118 } CM_KEY_NODE
, *PCM_KEY_NODE
;
123 typedef struct _VALUE_LIST_CELL
125 HCELL_INDEX ValueOffset
[ANYSIZE_ARRAY
];
126 } VALUE_LIST_CELL
, *PVALUE_LIST_CELL
;
131 typedef struct _CM_KEY_VALUE
140 WCHAR Name
[ANYSIZE_ARRAY
];
141 } CM_KEY_VALUE
, *PCM_KEY_VALUE
;
146 typedef struct _CM_KEY_SECURITY
152 ULONG ReferenceCount
;
153 ULONG DescriptorLength
;
154 //SECURITY_DESCRIPTOR_RELATIVE Descriptor;
155 UCHAR Data
[ANYSIZE_ARRAY
];
156 } CM_KEY_SECURITY
, *PCM_KEY_SECURITY
;
159 #include <host/poppack.h>
165 // Generic Index Entry
167 typedef struct _CM_INDEX
175 } CM_INDEX
, *PCM_INDEX
;
180 typedef struct _CM_KEY_INDEX
184 HCELL_INDEX List
[ANYSIZE_ARRAY
];
185 } CM_KEY_INDEX
, *PCM_KEY_INDEX
;
188 // Fast/Hash Key Index
190 typedef struct _CM_KEY_FAST_INDEX
194 CM_INDEX List
[ANYSIZE_ARRAY
];
195 } CM_KEY_FAST_INDEX
, *PCM_KEY_FAST_INDEX
;
200 typedef struct _CELL_DATA
205 CM_KEY_VALUE KeyValue
;
206 CM_KEY_SECURITY KeySecurity
;
207 CM_KEY_INDEX KeyIndex
;
208 HCELL_INDEX KeyList
[ANYSIZE_ARRAY
];
209 WCHAR KeyString
[ANYSIZE_ARRAY
];
211 } CELL_DATA
, *PCELL_DATA
;
213 #endif /* CMLIB_CMDATA_H */