108{
115
116
117
118
119
120 StringCbCopyW(szBuffer,
sizeof(szBuffer), pProfileParams->pszProfileName);
121
122
123 StringCbCopyW(szProfilePath,
sizeof(szProfilePath), pszProfilesPath);
125 StringCbCatW(szProfilePath,
sizeof(szProfilePath), szBuffer);
126
127
128
130 {
132 {
135 }
136
137
139 {
142 }
143
144
145 StringCbCopyW(szProfilePath,
sizeof(szProfilePath), pszProfilesPath);
147 StringCbCatW(szProfilePath,
sizeof(szProfilePath), szBuffer);
148
149
151 {
153 {
156 }
157 }
158 }
159
160
161
164 pProfileParams->pszProfileRegValue,
165 0,
170 {
174 }
175
176
178
179
180
181
182
183
184
185
186
187 lpFolderData = pProfileParams->pFolderList;
189 {
192
193
199 {
200
202 }
203
204
206 {
208 {
211 }
212 }
213
216
217 lpFolderData++;
218 }
219
220
222 pProfileParams->pszShellFoldersKey,
223 0,
227 {
231 }
232
233
234
235
236 lpFolderData = pProfileParams->pFolderList;
238 {
240 {
243
244
250 {
251
253 }
254
258 0,
263 {
268 }
269 }
270
271 lpFolderData++;
272 }
273
275
276
278 pProfileParams->pszUserShellFoldersKey,
279 0,
283 {
287 }
288
289 lpFolderData = pProfileParams->pFolderList;
291 {
293 {
294 StringCbCopyW(szBuffer,
sizeof(szBuffer), pProfileParams->pszEnvVarProfilePath);
296
297
303 {
304
306 }
307
311 0,
316 {
321 }
322 }
323
324 lpFolderData++;
325 }
326
328
330}
#define RegCloseKey(hKey)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
static DWORD DWORD * dwLength
BOOL WINAPI DECLSPEC_HOTPATCH SetEnvironmentVariableW(IN LPCWSTR lpName, IN LPCWSTR lpValue)
BOOL WINAPI CreateDirectoryW(IN LPCWSTR lpPathName, IN LPSECURITY_ATTRIBUTES lpSecurityAttributes)
BOOL WINAPI SetFileAttributesW(LPCWSTR lpFileName, DWORD dwFileAttributes)
BOOL AppendSystemPostfix(LPWSTR lpName, DWORD dwMaxLength)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
#define ERROR_ALREADY_EXISTS
#define FILE_ATTRIBUTE_HIDDEN
STRSAFEAPI StringCbCopyW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszSrc)
STRSAFEAPI StringCbCatW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszSrc)
DWORD WINAPI GetLastError(void)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)