22{
27 WCHAR szEnvValue[1024];
33 HKEY hKeyShellFolders;
36
37
39 L"Volatile Environment",
40 0,
45 &hKeyVolatileEnv,
46 &dwDisp);
48 {
49 WARN(
"WL: RegCreateKeyExW() failed to create the volatile environment key (Error: %ld)\n", lError);
50 return;
51 }
52
53
55 Session->Profile->pszEnvironment !=
NULL)
56 {
57 wstr = Session->Profile->pszEnvironment;
59 {
61
63
65 {
66 endptr = eqptr;
67
68 endptr--;
70 endptr--;
71
73
76
77 eqptr++;
79 eqptr++;
81
83 szEnvKey,
84 0,
88 }
89
91 }
92 }
93
94
96 L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders",
97 0,
99 &hKeyShellFolders);
101 {
106 &dwType,
110 {
114 0,
118 }
119
121 }
122
124}
#define RegCloseKey(hKey)
LONG WINAPI RegCreateKeyExW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ DWORD Reserved, _In_opt_ LPWSTR lpClass, _In_ DWORD dwOptions, _In_ REGSAM samDesired, _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, _Out_ PHKEY phkResult, _Out_opt_ LPDWORD lpdwDisposition)
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)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
GLuint GLsizei GLsizei * length
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
#define REG_OPTION_VOLATILE
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
_CRTIMP wchar_t *__cdecl wcsncpy(wchar_t *_Dest, const wchar_t *_Source, size_t _Count)
#define WLX_PROFILE_TYPE_V2_0