FreeLibrary function kernel32

int FreeLibrary(
  1. int hLibModule
)

Frees the loaded dynamic-link library (DLL) module and, if necessary, decrements its reference count. When the reference count reaches zero, the module is unloaded from the address space of the calling process and the handle is no longer valid.

BOOL FreeLibrary(
  HMODULE hLibModule
);

Implementation

int FreeLibrary(int hLibModule) => _FreeLibrary(hLibModule);