8#include "../macros.hpp"
13hi_export_module(hikogui.win32 : utility);
15hi_export
namespace hi {
inline namespace v1 {
27 auto i = std::bit_cast<uintptr_t>(handle);
31 return static_cast<uint32_t
>(i);
34[[nodiscard]]
inline HANDLE win32_int_to_HANDLE(uint32_t i)
noexcept
36 return std::bit_cast<HANDLE>(
static_cast<uintptr_t
>(i));
Rules for working with win32 headers.
The HikoGUI namespace.
Definition array_generic.hpp:20
uint32_t win32_HANDLE_to_int(HANDLE handle) noexcept
Convert a HANDLE to a 32-bit unsigned integer.
Definition utility.hpp:25
DOXYGEN BUG.
Definition algorithm_misc.hpp:20