LoadLibraryEx function kernel32
Loads the specified module into the address space of the calling process.
To learn more, see learn.microsoft.com/windows/win32/api/libloaderapi/nf-libloaderapi-loadlibraryexw.
Implementation
Win32Result<HMODULE> LoadLibraryEx(
PCWSTR lpLibFileName,
LOAD_LIBRARY_FLAGS dwFlags,
) {
final result_ = LoadLibraryExW_Wrapper(lpLibFileName, nullptr, dwFlags);
return Win32Result(value: HMODULE(result_.value.ptr), error: result_.error);
}