MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / getFolderPathImpl

Function getFolderPathImpl

SpeedTest/Env.cpp:8–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace Env
7{
8 static auto getFolderPathImpl(REFKNOWNFOLDERID id)
9 {
10 wchar_t* ptr;
11 SHGetKnownFolderPath(id, 0, NULL, &ptr);
12 std::wstring result{ ptr };
13 CoTaskMemFree(ptr);
14 return result;
15 }
16
17 std::wstring const& GetFolderPath(SpecialFolder folder)
18 {

Callers 1

Env.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected