2005-04-17 17:10:37 +04:00
|
|
|
//+---------------------------------------------------------------------------
|
|
|
|
|
2020-06-27 18:15:06 +03:00
|
|
|
#include <tchar.h>
|
2005-04-17 17:10:37 +04:00
|
|
|
#include <windows.h>
|
2020-06-27 18:15:06 +03:00
|
|
|
#include "crtinit.c"
|
2019-11-27 20:29:12 +03:00
|
|
|
|
2015-03-03 22:51:13 +03:00
|
|
|
BOOL WINAPI DllMain (HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved);
|
2005-04-17 17:10:37 +04:00
|
|
|
|
2015-03-03 22:51:13 +03:00
|
|
|
BOOL WINAPI _dllstart(HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved)
|
2005-04-17 17:10:37 +04:00
|
|
|
{
|
2019-11-27 20:29:12 +03:00
|
|
|
BOOL bRet;
|
2020-06-27 18:15:06 +03:00
|
|
|
if (dwReason == DLL_PROCESS_ATTACH) /* ignore DLL_THREAD_ATTACH */
|
|
|
|
run_ctors(0, 0, 0);
|
2019-11-27 20:29:12 +03:00
|
|
|
bRet = DllMain (hDll, dwReason, lpReserved);
|
2020-06-27 18:15:06 +03:00
|
|
|
if (dwReason == DLL_PROCESS_DETACH) /* ignore DLL_THREAD_DETACH */
|
|
|
|
run_dtors();
|
2019-11-27 20:29:12 +03:00
|
|
|
return bRet;
|
2005-04-17 17:10:37 +04:00
|
|
|
}
|