Kernel32FreeLibrary Method

Overload List

FreeLibrary(IntPtr) 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.

FreeLibrary(SafeModuleHandle) 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.

See Also