MCPcopy Create free account
hub / github.com/MicrosoftEdge/WebView2Browser / GetAppDataDirectory

Method GetAppDataDirectory

BrowserWindow.cpp:906–923  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

904}
905
906std::wstring BrowserWindow::GetAppDataDirectory()
907{
908 TCHAR path[MAX_PATH];
909 std::wstring dataDirectory;
910 HRESULT hr = SHGetFolderPath(nullptr, CSIDL_APPDATA, NULL, 0, path);
911 if (SUCCEEDED(hr))
912 {
913 dataDirectory = std::wstring(path);
914 dataDirectory.append(L"\\Microsoft\\");
915 }
916 else
917 {
918 dataDirectory = std::wstring(L".\\");
919 }
920
921 dataDirectory.append(s_title);
922 return dataDirectory;
923}
924
925std::wstring BrowserWindow::GetFullPathFor(LPCWSTR relativePath)
926{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected