You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.0 KiB
43 lines
1.0 KiB
// File: nmdll.cpp
|
|
|
|
#include "precomp.h"
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
// Globals
|
|
|
|
HINSTANCE g_hInst = NULL;
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
/* D L L M A I N */
|
|
/*-------------------------------------------------------------------------
|
|
%%Function: DllMain
|
|
|
|
-------------------------------------------------------------------------*/
|
|
BOOL WINAPI DllMain(HINSTANCE hDllInst, DWORD fdwReason, LPVOID lpv)
|
|
{
|
|
switch (fdwReason)
|
|
{
|
|
case DLL_PROCESS_ATTACH:
|
|
{
|
|
g_hInst = hDllInst;
|
|
DisableThreadLibraryCalls(hDllInst);
|
|
DbgInitZones();
|
|
DBG_INIT_MEMORY_TRACKING(hDllInst);
|
|
TRACE_OUT(("*** NMCOM.DLL: Attached process thread %X", GetCurrentThreadId()));
|
|
break;
|
|
}
|
|
|
|
case DLL_PROCESS_DETACH:
|
|
TRACE_OUT(("*** NMCOM.DLL: Detaching process thread %X", GetCurrentThreadId()));
|
|
DBG_CHECK_MEMORY_TRACKING(hDllInst);
|
|
DbgFreeZones();
|
|
break;
|
|
|
|
default:
|
|
break;
|
|
}
|
|
|
|
return TRUE;
|
|
}
|