22 lines
477 B
C
22 lines
477 B
C
#include <windows.h>
|
|
|
|
|
|
BOOL _stdcall LibMain(HANDLE hModule,
|
|
DWORD ul_reason_for_call,
|
|
LPVOID lpReserved)
|
|
{
|
|
#ifdef REGISTER_BBEXIT
|
|
extern void bbexit(void);
|
|
switch( ul_reason_for_call )
|
|
{
|
|
case DLL_PROCESS_ATTACH:
|
|
case DLL_THREAD_ATTACH:
|
|
case DLL_THREAD_DETACH:
|
|
break;
|
|
case DLL_PROCESS_DETACH:
|
|
bbexit();
|
|
}
|
|
#endif /* #ifdef REGISTER_BBEXIT */
|
|
return TRUE;
|
|
}
|