OLD | NEW |
(Empty) | |
| 1 //------------------------------------------------------------------------------
------------------- |
| 2 // <copyright file="wixca.cpp" company="Outercurve Foundation"> |
| 3 // Copyright (c) 2004, Outercurve Foundation. |
| 4 // This software is released under Microsoft Reciprocal License (MS-RL). |
| 5 // The license and further copyright text can be found in the file |
| 6 // LICENSE.TXT at the root directory of the distribution. |
| 7 // </copyright> |
| 8 // |
| 9 // <summary> |
| 10 // Windows Installer XML CustomAction DllMain function. |
| 11 // </summary> |
| 12 //------------------------------------------------------------------------------
------------------- |
| 13 #include "precomp.h" |
| 14 |
| 15 /******************************************************************** |
| 16 DllMain - standard entry point for all WiX CustomActions |
| 17 |
| 18 ********************************************************************/ |
| 19 extern "C" BOOL WINAPI DllMain( |
| 20 IN HINSTANCE hInst, |
| 21 IN ULONG ulReason, |
| 22 IN LPVOID) |
| 23 { |
| 24 switch (ulReason) |
| 25 { |
| 26 case DLL_PROCESS_ATTACH: |
| 27 WcaGlobalInitialize(hInst); |
| 28 break; |
| 29 |
| 30 case DLL_PROCESS_DETACH: |
| 31 WcaGlobalFinalize(); |
| 32 break; |
| 33 } |
| 34 |
| 35 return TRUE; |
| 36 } |
| 37 |
OLD | NEW |