| 50 | }// namespace |
| 51 | |
| 52 | std::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 | |
| 59 | static std::filesystem::path GetTemporaryDirectoryRoot() { |
| 60 | static LazyPath sPath {[]() { |
nothing calls this directly
no test coverage detected