1998-09-15 02:20:22 +00:00
|
|
|
#ifdef XP_PC
|
1998-05-27 23:44:03 +00:00
|
|
|
#include <windows.h>
|
1998-09-18 18:45:50 +00:00
|
|
|
|
|
|
|
#ifndef MOZ_TREX
|
1998-09-15 02:20:22 +00:00
|
|
|
#include "nlsloc.h"
|
1998-09-18 18:45:50 +00:00
|
|
|
#endif
|
1998-05-27 23:44:03 +00:00
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
BOOL WINAPI DllMain (HINSTANCE hDLL, DWORD dwReason, LPVOID lpReserved)
|
|
|
|
{
|
|
|
|
switch (dwReason)
|
|
|
|
{
|
|
|
|
case DLL_PROCESS_ATTACH:
|
|
|
|
break;
|
|
|
|
|
|
|
|
case DLL_THREAD_ATTACH:
|
|
|
|
break;
|
|
|
|
|
|
|
|
case DLL_THREAD_DETACH:
|
|
|
|
break;
|
|
|
|
|
|
|
|
case DLL_PROCESS_DETACH:
|
1998-09-18 18:45:50 +00:00
|
|
|
|
|
|
|
#ifndef MOZ_TREX
|
1998-09-15 02:20:22 +00:00
|
|
|
NLS_Terminate();
|
1998-09-18 18:45:50 +00:00
|
|
|
#endif
|
1998-05-27 23:44:03 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
#else /* ! _WIN32 */
|
|
|
|
|
1998-09-15 02:20:22 +00:00
|
|
|
int CALLBACK LibMain( HINSTANCE hInst, WORD wDataSeg,
|
1998-05-27 23:44:03 +00:00
|
|
|
WORD cbHeapSize, LPSTR lpszCmdLine )
|
|
|
|
{
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL CALLBACK __loadds WEP(BOOL fSystemExit)
|
|
|
|
{
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
#endif /* ! _WIN32 */
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* XP_PC */
|