diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-05-03 16:05:08 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-05-03 16:05:08 -0700 |
| commit | 7bdd5e9159b298e0411afa689a06c44e36e293cd (patch) | |
| tree | 57d24ea7fdd8025baf6a822a99b588c9df74a60d /src/ext/NetFx/ca/dllmain.cpp | |
| parent | ca02e81316d700a3647414f355eab4d2115d6163 (diff) | |
| download | wix-7bdd5e9159b298e0411afa689a06c44e36e293cd.tar.gz wix-7bdd5e9159b298e0411afa689a06c44e36e293cd.tar.bz2 wix-7bdd5e9159b298e0411afa689a06c44e36e293cd.zip | |
Move NetFx.wixext into ext
Diffstat (limited to 'src/ext/NetFx/ca/dllmain.cpp')
| -rw-r--r-- | src/ext/NetFx/ca/dllmain.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/ext/NetFx/ca/dllmain.cpp b/src/ext/NetFx/ca/dllmain.cpp new file mode 100644 index 00000000..df53f872 --- /dev/null +++ b/src/ext/NetFx/ca/dllmain.cpp | |||
| @@ -0,0 +1,26 @@ | |||
| 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 hInst, | ||
| 11 | IN ULONG ulReason, | ||
| 12 | IN LPVOID) | ||
| 13 | { | ||
| 14 | switch(ulReason) | ||
| 15 | { | ||
| 16 | case DLL_PROCESS_ATTACH: | ||
| 17 | WcaGlobalInitialize(hInst); | ||
| 18 | break; | ||
| 19 | |||
| 20 | case DLL_PROCESS_DETACH: | ||
| 21 | WcaGlobalFinalize(); | ||
| 22 | break; | ||
| 23 | } | ||
| 24 | |||
| 25 | return TRUE; | ||
| 26 | } | ||
