FreeLibraryAndExitThread function kernel32
Decrements the reference count of a loaded dynamic-link library (DLL) by one, then calls ExitThread to terminate the calling thread. The function does not return.
void FreeLibraryAndExitThread(
[in] HMODULE hLibModule,
[in] DWORD dwExitCode
);
Implementation
void FreeLibraryAndExitThread(int hLibModule, int dwExitCode) =>
_FreeLibraryAndExitThread(hLibModule, dwExitCode);