Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers...
[reactos.git] / sdk / 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 /*
20 * COPYRIGHT: See COPYING in the top level directory
21 * PROJECT: ReactOS hive maker
22 * FILE: tools/mkhive/cmi.h
23 * PURPOSE: Registry file manipulation routines
24 * PROGRAMMER: Hervé Poussineau
25 */
26
27 #define VERIFY_KEY_CELL(key)
28
29 NTSTATUS
30 CmiInitializeHive(
31 IN OUT PCMHIVE Hive,
32 IN PCWSTR Name);
33
34 NTSTATUS
35 CmiCreateSecurityKey(
36 IN PHHIVE Hive,
37 IN HCELL_INDEX Cell,
38 IN PUCHAR Descriptor,
39 IN ULONG DescriptorLength);
40
41 NTSTATUS
42 CmiAddSubKey(
43 IN PCMHIVE RegistryHive,
44 IN HCELL_INDEX ParentKeyCellOffset,
45 IN PCUNICODE_STRING SubKeyName,
46 IN BOOLEAN VolatileKey,
47 OUT HCELL_INDEX *pBlockOffset);
48
49 NTSTATUS
50 CmiAddValueKey(
51 IN PCMHIVE RegistryHive,
52 IN PCM_KEY_NODE Parent,
53 IN PCUNICODE_STRING ValueName,
54 OUT PCM_KEY_VALUE *pValueCell,
55 OUT HCELL_INDEX *pValueCellOffset);