| 413 | } |
| 414 | |
| 415 | inline std::filesystem::path GetKnownFolderPath(REFKNOWNFOLDERID rfid, DWORD dwFlags, HANDLE hToken) |
| 416 | { |
| 417 | std::filesystem::path r; |
| 418 | WCHAR* szSystemPath = nullptr; |
| 419 | if (SUCCEEDED(SHGetKnownFolderPath(rfid, dwFlags, hToken, &szSystemPath))) |
| 420 | { |
| 421 | r = szSystemPath; |
| 422 | } |
| 423 | CoTaskMemFree(szSystemPath); |
| 424 | return r; |
| 425 | }; |
| 426 | |
| 427 | template<typename... Ts> |
| 428 | FARPROC FindProcAddress(HMODULE hModule, Ts... procNames) |
nothing calls this directly
no outgoing calls
no test coverage detected