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

Method GetFullPathFor

BrowserWindow.cpp:925–935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

923}
924
925std::wstring BrowserWindow::GetFullPathFor(LPCWSTR relativePath)
926{
927 WCHAR path[MAX_PATH];
928 GetModuleFileNameW(m_hInst, path, MAX_PATH);
929 std::wstring pathName(path);
930
931 std::size_t index = pathName.find_last_of(L"\\") + 1;
932 pathName.replace(index, pathName.length(), relativePath);
933
934 return pathName;
935}
936
937std::wstring BrowserWindow::GetFilePathAsURI(std::wstring fullPath)
938{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected