MCPcopy Create free account
hub / github.com/OpenKneeboard/OpenKneeboard / GetKnownFolderPath

Function GetKnownFolderPath

src/lib/Filesystem.cpp:52–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}// namespace
51
52std::filesystem::path GetKnownFolderPath(const _GUID& knownFolderID) {
53 wil::unique_cotaskmem_ptr<wchar_t> buffer;
54 winrt::check_hresult(SHGetKnownFolderPath(
55 knownFolderID, KF_FLAG_CREATE, NULL, std::out_ptr(buffer)));
56 return {buffer.get()};
57}
58
59static std::filesystem::path GetTemporaryDirectoryRoot() {
60 static LazyPath sPath {[]() {

Callers

nothing calls this directly

Calls 2

check_hresultFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected