2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS Setup Library
4 * FILE: base/setup/lib/regutil.h
5 * PURPOSE: Registry utility functions
6 * PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
12 * This function is similar to the one in dlls/win32/advapi32/reg/reg.c
13 * TODO: I should review both of them very carefully, because they may need
14 * some adjustments in their NtCreateKey calls, especially for CreateOptions
18 CreateNestedKey(PHANDLE KeyHandle
,
19 ACCESS_MASK DesiredAccess
,
20 POBJECT_ATTRIBUTES ObjectAttributes
,
24 * Should be called under SE_BACKUP_PRIVILEGE privilege
28 IN PUNICODE_STRING InstallPath
,
29 IN PCWSTR RegistryKey
,
31 IN HANDLE ProtoKeyHandle
34 IN ULONG DescriptorLength
40 IN HANDLE RootLinkKeyHandle OPTIONAL
,
41 IN PCWSTR LinkKeyName
,
42 IN PCWSTR TargetKeyName
);
45 * Should be called under SE_RESTORE_PRIVILEGE privilege
49 IN HKEY RootKey OPTIONAL
,
50 IN PCWSTR RegMountPoint
,
51 // IN HANDLE RootDirectory OPTIONAL,
52 IN PUNICODE_STRING InstallPath
,
56 IN ULONG DescriptorLength
61 * Should be called under SE_RESTORE_PRIVILEGE privilege
65 IN HKEY RootKey OPTIONAL
,
66 IN PCWSTR RegMountPoint
,
70 * Should be called under SE_RESTORE_PRIVILEGE privilege
74 // IN HKEY RootKey OPTIONAL,
75 // // IN HANDLE RootDirectory OPTIONAL,
76 IN PUNICODE_STRING InstallPath
,
77 IN PCWSTR RegistryKey
/* ,
78 IN PCWSTR RegMountPoint */);