Something went wrong. Try again.
Reactos
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687/* * 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... */NTSTATUSCreateNestedKey(PHANDLE KeyHandle, ACCESS_MASK DesiredAccess, POBJECT_ATTRIBUTES ObjectAttributes, ULONG CreateOptions);
/* * Should be called under SE_BACKUP_PRIVILEGE privilege */NTSTATUSCreateRegistryFile( IN PUNICODE_STRING NtSystemRoot, IN PCWSTR RegistryKey, IN BOOLEAN IsHiveNew, IN HANDLE ProtoKeyHandle/* IN PUCHAR Descriptor, IN ULONG DescriptorLength*/ );
/* Adapted from ntoskrnl/config/cmsysini.c:CmpLinkKeyToHive() */NTSTATUSCreateSymLinkKey( IN HANDLE RootKey OPTIONAL, IN PCWSTR LinkKeyName, IN PCWSTR TargetKeyName);
NTSTATUSDeleteSymLinkKey( IN HANDLE RootKey OPTIONAL, IN PCWSTR LinkKeyName);
/* * Should be called under SE_RESTORE_PRIVILEGE privilege */NTSTATUSConnectRegistry( IN HANDLE RootKey OPTIONAL, IN PCWSTR RegMountPoint, // IN HANDLE RootDirectory OPTIONAL, IN PUNICODE_STRING NtSystemRoot, IN PCWSTR RegistryKey/* IN PUCHAR Descriptor, IN ULONG DescriptorLength*/ );
/* * Should be called under SE_RESTORE_PRIVILEGE privilege */NTSTATUSDisconnectRegistry( IN HANDLE RootKey OPTIONAL, IN PCWSTR RegMountPoint, IN ULONG Flags);
/* * Should be called under SE_RESTORE_PRIVILEGE privilege */NTSTATUSVerifyRegistryHive( // IN HANDLE RootKey OPTIONAL, // // IN HANDLE RootDirectory OPTIONAL, IN PUNICODE_STRING NtSystemRoot, IN PCWSTR RegistryKey /* , IN PCWSTR RegMountPoint */);
/* EOF */