FreeLibrary function kernel32
Frees the loaded dynamic-link library (DLL) module and, if necessary, decrements its reference count.
To learn more, see learn.microsoft.com/windows/win32/api/libloaderapi/nf-libloaderapi-freelibrary.
Implementation
Win32Result<bool> FreeLibrary(HMODULE hLibModule) {
resolveGetLastError();
final result_ = _FreeLibrary(hLibModule);
return .new(value: result_ != FALSE, error: GetLastError());
}