| 486 | #ifdef _WIN32 |
| 487 | using lib_handle_t = HMODULE; |
| 488 | inline lib_handle_t load_lib(const std::filesystem::path& p) { |
| 489 | return LoadLibraryW(p.wstring().c_str()); |
| 490 | } |
| 491 | inline void* resolve_sym(lib_handle_t h, const char* name) { |
| 492 | return reinterpret_cast<void*>(GetProcAddress(h, name)); |
| 493 | } |