// DllMain - Initialize and cleanup WiX custom action utils. extern "C" BOOL WINAPI DllMain(__in HINSTANCE hInst, __in ULONG ulReason, __in LPVOID) { switch(ulReason) { case DLL_PROCESS_ATTACH: WcaGlobalInitialize(hInst); break; case DLL_PROCESS_DETACH: WcaGlobalFinalize(); break; } return TRUE; }
/******************************************************************** DllMain - standard entry point for all WiX custom actions. ********************************************************************/ extern "C" BOOL WINAPI DllMain( IN HINSTANCE hInstance, IN ULONG ulReason, IN LPVOID) { switch(ulReason) { case DLL_PROCESS_ATTACH: WcaGlobalInitialize(hInstance); ::DisableThreadLibraryCalls(hInstance); break; case DLL_PROCESS_DETACH: WcaGlobalFinalize(); break; } return TRUE; }