| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
| 2 | |
| 3 | #include "precomp.h" |
| 4 | |
| 5 | /******************************************************************** |
| 6 | DllMain - standard entry point for all WiX CustomActions |
| 7 | |
| 8 | ********************************************************************/ |
| 9 | extern "C" BOOL WINAPI DllMain( |
| 10 | IN HINSTANCE hInstance, |
| 11 | IN ULONG ulReason, |
| 12 | IN LPVOID) |
| 13 | { |
| 14 | switch(ulReason) |
| 15 | { |
| 16 | case DLL_PROCESS_ATTACH: |
| 17 | WcaGlobalInitialize(hInstance); |
| 18 | break; |
| 19 | |
| 20 | case DLL_PROCESS_DETACH: |
| 21 | WcaGlobalFinalize(); |
| 22 | break; |
| 23 | } |
| 24 | |
| 25 | return TRUE; |
| 26 | } |