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 #pragma once 28 29 #define VERIFY_KEY_CELL(key) 30 31 NTSTATUS 32 CmiInitializeHive( 33 IN OUT PCMHIVE Hive, 34 IN PCWSTR Name); 35 36 NTSTATUS 37 CmiCreateSecurityKey( 38 IN PHHIVE Hive, 39 IN HCELL_INDEX Cell, 40 IN PUCHAR Descriptor, 41 IN ULONG DescriptorLength); 42 43 NTSTATUS 44 CmiAddSubKey( 45 IN PCMHIVE RegistryHive, 46 IN HCELL_INDEX ParentKeyCellOffset, 47 IN PCUNICODE_STRING SubKeyName, 48 IN BOOLEAN VolatileKey, 49 OUT HCELL_INDEX *pBlockOffset); 50 51 NTSTATUS 52 CmiAddValueKey( 53 IN PCMHIVE RegistryHive, 54 IN PCM_KEY_NODE Parent, 55 IN ULONG ChildIndex, 56 IN PCUNICODE_STRING ValueName, 57 OUT PCM_KEY_VALUE *pValueCell, 58 OUT HCELL_INDEX *pValueCellOffset); 59