Index: src/chext/dllmain.cpp =================================================================== diff -u -N -r633a533cb6e741d44fe28aa56339e1d2709b1b27 -rb79aca0d66b1084f230022efe39cc89307482e6d --- src/chext/dllmain.cpp (.../dllmain.cpp) (revision 633a533cb6e741d44fe28aa56339e1d2709b1b27) +++ src/chext/dllmain.cpp (.../dllmain.cpp) (revision b79aca0d66b1084f230022efe39cc89307482e6d) @@ -1,12 +1,11 @@ #include "stdafx.h" #include "resource.h" #include "chext.h" - #include "dllmain.h" - #include "MenuExt.h" #include "DropMenuExt.h" #include "ShellExtControl.h" +#include "TLogger.h" CCHExtModule _AtlModule; @@ -20,10 +19,15 @@ if (dwReason == DLL_PROCESS_ATTACH) { DisableThreadLibraryCalls(hInstance); + + TLogger lg; + BOOST_LOG_SEV(lg, debug) << L"DllMain - attaching to process: " << hInstance << L", " << dwReason << L", " << lpReserved; } else if (dwReason == DLL_PROCESS_DETACH) { + TLogger lg; + BOOST_LOG_SEV(lg, debug) << L"DllMain - detaching from process: " << hInstance << L", " << dwReason << L", " << lpReserved; } return _AtlModule.DllMain(dwReason, lpReserved); -} \ No newline at end of file +}