FreeLibraryAndExitThread

機能
DLLモジュール参照カウントを一つ下げてスレッドを終了する
Declare Sub FreeLibraryAndExitThread Lib "kernel32.dll" _
(ByVal hLibModule As Long, ByVal dwExitCode As Long)
Declare Sub FreeLibraryAndExitThread Lib "kernel32.dll" _
(ByVal hLibModule As Integer, ByVal dwExitCode As Integer)

VOID FreeLibraryAndExitThread(
HMODULE hModule,
DWORD dwExitCode
);
引数
hLibModule

モジュールのハンドル
dwExitCode
スレッドの終了コード
備考
FreeLibrary()関数とExitThread()関数(←資料が見つかりませんでした)を同時に使用したのと同じ。