MCPcopy Create free account
hub / github.com/ThirteenAG/WidescreenFixesPack / GetKnownFolderPath

Function GetKnownFolderPath

includes/stdafx.h:415–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415inline 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
427template<typename... Ts>
428FARPROC FindProcAddress(HMODULE hModule, Ts... procNames)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected