#include "precomp.h"
#include <debug.h>
Go to the source code of this file.
◆ NDEBUG
◆ CopyKey()
Definition at line 38 of file registry.c.
40{
42
45 hDstKey);
47 {
50 }
51
53}
LSTATUS WINAPI RegCopyTreeW(_In_ HKEY, _In_opt_ LPCWSTR, _In_ HKEY)
Referenced by CreateUserHive().
◆ CreateUserHive()
Definition at line 57 of file registry.c.
59{
64
65 DPRINT(
"CreateUserHive(%S) called\n", lpKeyName);
66
69 0,
71 &hDefaultKey);
73 {
76 }
77
79 lpKeyName,
80 0,
82 &hUserKey);
84 {
87 }
88
89 if (!
CopyKey(hUserKey, hDefaultKey))
90 {
92 }
93
95 hUserKey))
96 {
98 }
99
102
104 if (hUserKey !=
NULL)
106
107 if (hDefaultKey !=
NULL)
109
110 return Ret;
111}
#define RegCloseKey(hKey)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegFlushKey(HKEY hKey)
BOOL UpdateUsersShellFolderSettings(LPCWSTR lpUserProfilePath, HKEY hUserKey)
static BOOL CopyKey(HKEY hDstKey, HKEY hSrcKey)
static const WCHAR Cleanup[]
Referenced by CreateUserProfileExW().
◆ RegCopyTreeW()