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,
) {
resolveGetLastError();
final result_ = _LoadLibraryEx(lpLibFileName, nullptr, dwFlags);
return .new(value: .new(result_), error: GetLastError());
}