MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / FormatHRESULT

Method FormatHRESULT

ProgramLog/error/win32.cpp:8–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "util/strings.hpp"
7
8std::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
17wil::unique_hlocal_string Error::impl::FormatMessageForLanguage(HRESULT result, DWORD langId, DWORD &count)
18{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected