mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 02:43:09 +00:00
[SETUPLIB] Move the files that implement utility functions into their own subdirectory. The files remaining in the main directory implement setup procedures that use the utility functions.
svn path=/branches/setup_improvements/; revision=75695
This commit is contained in:
parent
95a34ef6fc
commit
6f19c83b96
28 changed files with 28 additions and 26 deletions
80
base/setup/lib/utils/regutil.h
Normal file
80
base/setup/lib/utils/regutil.h
Normal file
|
@ -0,0 +1,80 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS Setup Library
|
||||
* FILE: base/setup/lib/regutil.h
|
||||
* PURPOSE: Registry utility functions
|
||||
* PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
/*
|
||||
* This function is similar to the one in dlls/win32/advapi32/reg/reg.c
|
||||
* TODO: I should review both of them very carefully, because they may need
|
||||
* some adjustments in their NtCreateKey calls, especially for CreateOptions
|
||||
* stuff etc...
|
||||
*/
|
||||
NTSTATUS
|
||||
CreateNestedKey(PHANDLE KeyHandle,
|
||||
ACCESS_MASK DesiredAccess,
|
||||
POBJECT_ATTRIBUTES ObjectAttributes,
|
||||
ULONG CreateOptions);
|
||||
|
||||
/*
|
||||
* Should be called under SE_BACKUP_PRIVILEGE privilege
|
||||
*/
|
||||
NTSTATUS
|
||||
CreateRegistryFile(
|
||||
IN PUNICODE_STRING InstallPath,
|
||||
IN PCWSTR RegistryKey,
|
||||
IN BOOLEAN IsHiveNew,
|
||||
IN HANDLE ProtoKeyHandle
|
||||
/*
|
||||
IN PUCHAR Descriptor,
|
||||
IN ULONG DescriptorLength
|
||||
*/
|
||||
);
|
||||
|
||||
BOOLEAN
|
||||
CmpLinkKeyToHive(
|
||||
IN HANDLE RootLinkKeyHandle OPTIONAL,
|
||||
IN PCWSTR LinkKeyName,
|
||||
IN PCWSTR TargetKeyName);
|
||||
|
||||
/*
|
||||
* Should be called under SE_RESTORE_PRIVILEGE privilege
|
||||
*/
|
||||
NTSTATUS
|
||||
ConnectRegistry(
|
||||
IN HKEY RootKey OPTIONAL,
|
||||
IN PCWSTR RegMountPoint,
|
||||
// IN HANDLE RootDirectory OPTIONAL,
|
||||
IN PUNICODE_STRING InstallPath,
|
||||
IN PCWSTR RegistryKey
|
||||
/*
|
||||
IN PUCHAR Descriptor,
|
||||
IN ULONG DescriptorLength
|
||||
*/
|
||||
);
|
||||
|
||||
/*
|
||||
* Should be called under SE_RESTORE_PRIVILEGE privilege
|
||||
*/
|
||||
NTSTATUS
|
||||
DisconnectRegistry(
|
||||
IN HKEY RootKey OPTIONAL,
|
||||
IN PCWSTR RegMountPoint,
|
||||
IN ULONG Flags);
|
||||
|
||||
/*
|
||||
* Should be called under SE_RESTORE_PRIVILEGE privilege
|
||||
*/
|
||||
NTSTATUS
|
||||
VerifyRegistryHive(
|
||||
// IN HKEY RootKey OPTIONAL,
|
||||
// // IN HANDLE RootDirectory OPTIONAL,
|
||||
IN PUNICODE_STRING InstallPath,
|
||||
IN PCWSTR RegistryKey /* ,
|
||||
IN PCWSTR RegMountPoint */);
|
||||
|
||||
/* EOF */
|
Loading…
Add table
Add a link
Reference in a new issue