LoadLibrary 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-loadlibraryw.
Implementation
Win32Result<HMODULE> LoadLibrary(PCWSTR lpLibFileName) {
final result_ = LoadLibraryW_Wrapper(lpLibFileName);
return .new(value: .new(result_.value.ptr), error: result_.error);
}