2006-09-10 15:39:11 +00:00
|
|
|
|
/*
|
|
|
|
|
* ReactOS kernel
|
|
|
|
|
* Copyright (C) 2006 ReactOS Team
|
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
2009-10-27 10:34:16 +00:00
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2006-09-10 15:39:11 +00:00
|
|
|
|
*/
|
2016-01-17 00:50:03 +00:00
|
|
|
|
/*
|
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
2006-09-10 15:39:11 +00:00
|
|
|
|
* PROJECT: ReactOS hive maker
|
|
|
|
|
* FILE: tools/mkhive/cmi.h
|
|
|
|
|
* PURPOSE: Registry file manipulation routines
|
|
|
|
|
* PROGRAMMER: Herv<EFBFBD> Poussineau
|
|
|
|
|
*/
|
|
|
|
|
|
2018-10-14 14:28:13 +00:00
|
|
|
|
#pragma once
|
|
|
|
|
|
2006-09-10 15:39:11 +00:00
|
|
|
|
#define VERIFY_KEY_CELL(key)
|
|
|
|
|
|
|
|
|
|
NTSTATUS
|
2016-01-17 00:50:03 +00:00
|
|
|
|
CmiInitializeHive(
|
|
|
|
|
IN OUT PCMHIVE Hive,
|
|
|
|
|
IN PCWSTR Name);
|
2006-09-10 15:39:11 +00:00
|
|
|
|
|
|
|
|
|
NTSTATUS
|
2016-01-17 00:50:03 +00:00
|
|
|
|
CmiCreateSecurityKey(
|
|
|
|
|
IN PHHIVE Hive,
|
|
|
|
|
IN HCELL_INDEX Cell,
|
|
|
|
|
IN PUCHAR Descriptor,
|
|
|
|
|
IN ULONG DescriptorLength);
|
2006-09-10 15:39:11 +00:00
|
|
|
|
|
|
|
|
|
NTSTATUS
|
2016-01-17 00:50:03 +00:00
|
|
|
|
CmiAddSubKey(
|
2015-01-07 19:26:49 +00:00
|
|
|
|
IN PCMHIVE RegistryHive,
|
|
|
|
|
IN HCELL_INDEX ParentKeyCellOffset,
|
|
|
|
|
IN PCUNICODE_STRING SubKeyName,
|
2016-01-17 00:50:03 +00:00
|
|
|
|
IN BOOLEAN VolatileKey,
|
2015-01-07 19:26:49 +00:00
|
|
|
|
OUT HCELL_INDEX *pBlockOffset);
|
2006-09-10 15:39:11 +00:00
|
|
|
|
|
|
|
|
|
NTSTATUS
|
|
|
|
|
CmiAddValueKey(
|
2015-01-07 19:26:49 +00:00
|
|
|
|
IN PCMHIVE RegistryHive,
|
2016-01-17 00:50:03 +00:00
|
|
|
|
IN PCM_KEY_NODE Parent,
|
2018-10-14 13:14:52 +00:00
|
|
|
|
IN ULONG ChildIndex,
|
2015-01-07 19:26:49 +00:00
|
|
|
|
IN PCUNICODE_STRING ValueName,
|
|
|
|
|
OUT PCM_KEY_VALUE *pValueCell,
|
|
|
|
|
OUT HCELL_INDEX *pValueCellOffset);
|