[MKHIVE]
[reactos.git] / reactos / tools / mkhive / cmi.h
1 /*
2 * ReactOS kernel
3 * Copyright (C) 2006 ReactOS Team
4 *
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.
9 *
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.
14 *
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.
18 */
19 /* COPYRIGHT: See COPYING in the top level directory
20 * PROJECT: ReactOS hive maker
21 * FILE: tools/mkhive/cmi.h
22 * PURPOSE: Registry file manipulation routines
23 * PROGRAMMER: Hervé Poussineau
24 */
25
26 #define VERIFY_KEY_CELL(key)
27 #define VERIFY_VALUE_LIST_CELL(cell)
28
29 NTSTATUS
30 CmiInitializeTempHive(
31 IN OUT PCMHIVE Hive);
32
33 NTSTATUS
34 CmiAddSubKey(
35 IN PCMHIVE RegistryHive,
36 IN PCM_KEY_NODE ParentKeyCell,
37 IN HCELL_INDEX ParentKeyCellOffset,
38 IN PCUNICODE_STRING SubKeyName,
39 IN ULONG CreateOptions,
40 OUT PCM_KEY_NODE *pSubKeyCell,
41 OUT HCELL_INDEX *pBlockOffset);
42
43 NTSTATUS
44 CmiScanForSubKey(
45 IN PCMHIVE RegistryHive,
46 IN PCM_KEY_NODE KeyCell,
47 IN PCUNICODE_STRING SubKeyName,
48 IN ULONG Attributes,
49 OUT PCM_KEY_NODE *pSubKeyCell,
50 OUT HCELL_INDEX *pBlockOffset);
51
52 NTSTATUS
53 CmiAddValueKey(
54 IN PCMHIVE RegistryHive,
55 IN PCM_KEY_NODE KeyCell,
56 IN HCELL_INDEX KeyCellOffset,
57 IN PCUNICODE_STRING ValueName,
58 OUT PCM_KEY_VALUE *pValueCell,
59 OUT HCELL_INDEX *pValueCellOffset);
60
61 NTSTATUS
62 CmiScanForValueKey(
63 IN PCMHIVE RegistryHive,
64 IN PCM_KEY_NODE KeyCell,
65 IN PCUNICODE_STRING ValueName,
66 OUT PCM_KEY_VALUE *pValueCell,
67 OUT HCELL_INDEX *pValueCellOffset);