src/AppInstallerCommonCore/Runtime.cpp
std::filesystem::path GetPathToUserTemp()
        {
            wchar_t tempPath[MAX_PATH + 1];
            DWORD tempChars = GetTempPathW(ARRAYSIZE(tempPath), tempPath);
            THROW_LAST_ERROR_IF(!tempChars);
            THROW_HR_IF(E_UNEXPECTED, tempChars > ARRAYSIZE(tempPath));
            return { std::wstring_view{ tempPath, static_cast<size_t>(tempChars) } };
        }
// Gets the user's temp path

Gets the user's temp path
Gets the user ' s temp path
std::filesystem::path GetPathToUserTemp()
        {
            wchar_t tempPath[MAX_PATH + 1];
            DWORD tempChars = GetTempPathW(ARRAYSIZE(tempPath), tempPath);
            THROW_LAST_ERROR_IF(!tempChars);
            THROW_HR_IF(E_UNEXPECTED, tempChars > ARRAYSIZE(tempPath));
            return { std::wstring_view{ tempPath, static_cast<size_t>(tempChars) } };
        }
std :: filesystem :: path GetPathToUserTemp ( ) { wchar_t tempPath [ MAX_PATH + 1 ] ; DWORD tempChars = GetTempPathW ( ARRAYSIZE ( tempPath ) , tempPath ) ; THROW_LAST_ERROR_IF ( ! tempChars ) ; THROW_HR_IF ( E_UNEXPECTED , tempChars > ARRAYSIZE ( tempPath ) ) ; return { std :: wstring_view { tempPath , static_cast < size_t > ( tempChars ) } } ; }
Gets the user's temp path
Gets the user ' s temp path