11#include <system_error>
13hi_export_module(hikogui.win32.winnls);
15hi_export
namespace hi {
inline namespace v1 {
17[[
nodiscard]] hi_inline std::expected<std::string, win32_error> win32_GetUserDefaultLocaleName()
noexcept
19 auto code = win32_error{};
26 code = win32_GetLastError();
31 if (
static_cast<bool>(code)) {
Rules for working with win32 headers.
@ code
Text is a piece of programming-code; a variable name, a function name.
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
The HikoGUI namespace.
Definition recursive_iterator.hpp:15
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:378
hi_inline std::expected< std::string, win32_error > win32_WideCharToMultiByte(std::wstring_view s, unsigned int code_page=CP_UTF8, uint32_t flags=0) noexcept
Convert a win32-API compatible std::wstring to a multi-byte std::string.
Definition base.hpp:87