| 6 | #include "util/strings.hpp" |
| 7 | |
| 8 | std::wstring Error::impl::FormatHRESULT(HRESULT result, std::wstring_view description) |
| 9 | { |
| 10 | return std::format( |
| 11 | L"0x{:08X}: {}", |
| 12 | static_cast<std::make_unsigned_t<HRESULT>>(result), // needs this otherwise we get some error codes in the negatives |
| 13 | description |
| 14 | ); |
| 15 | } |
| 16 | |
| 17 | wil::unique_hlocal_string Error::impl::FormatMessageForLanguage(HRESULT result, DWORD langId, DWORD &count) |
| 18 | { |
nothing calls this directly
no outgoing calls
no test coverage detected