158{
165
166
167
168
169
170 StringCbCopyW(szBuffer,
sizeof(szBuffer), pProfileParams->pszProfileName);
171
172
173 StringCbCopyW(szProfilePath,
sizeof(szProfilePath), pszProfilesPath);
175 StringCbCatW(szProfilePath,
sizeof(szProfilePath), szBuffer);
176
177
178
180 {
182 {
185 }
186
187
189 {
192 }
193
194
195 StringCbCopyW(szProfilePath,
sizeof(szProfilePath), pszProfilesPath);
197 StringCbCatW(szProfilePath,
sizeof(szProfilePath), szBuffer);
198
199
201 {
203 {
206 }
207 }
208 }
209
210
212
213
214
215
216
217
218
219
220
221 lpFolderData = pProfileParams->pFolderList;
223 {
225 {
226 StringCbCopyW(szBuffer,
sizeof(szBuffer), pszProgramDataPath);
227 }
228 else
229 {
231 }
232
235
236
238 {
240 {
243 }
244 }
245
248
249 lpFolderData++;
250 }
251
252
254 pProfileParams->pszShellFoldersKey,
255 0,
259 {
263 }
264
265
266
267
268 lpFolderData = pProfileParams->pFolderList;
270 {
272 {
274 {
275 StringCbCopyW(szBuffer,
sizeof(szBuffer), pszProgramDataPath);
276 }
277 else
278 {
280 }
281
284
288 0,
293 {
298 }
299 }
300
301 lpFolderData++;
302 }
303
305
306
308 pProfileParams->pszUserShellFoldersKey,
309 0,
313 {
317 }
318
319 lpFolderData = pProfileParams->pFolderList;
321 {
323 {
326 else
327 StringCbCopyW(szBuffer,
sizeof(szBuffer), pProfileParams->pszEnvVarProfilePath);
330
334 0,
339 {
344 }
345 }
346
347 lpFolderData++;
348 }
349
351
353}
#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 SetFileAttributesW(LPCWSTR lpFileName, DWORD dwFileAttributes)
_ACRTIMP size_t __cdecl wcslen(const wchar_t *)
BOOL AppendSystemPostfix(LPWSTR lpName, DWORD dwMaxLength)
#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)