diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-05-11 07:51:09 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-05-11 07:51:09 -0700 |
| commit | 6e7ce6b67efe767dd61cb7653e7baef71eb9c369 (patch) | |
| tree | 0492f75fddc779d5553666ee5c2eb7097cb930f5 /src/ext/Dependency/ca/dllmain.cpp | |
| parent | 4608361a88ef82e15caf3574ac107486f5fe135c (diff) | |
| parent | 3caaf742fcd19170a8732570654d3b2cbb18830f (diff) | |
| download | wix-6e7ce6b67efe767dd61cb7653e7baef71eb9c369.tar.gz wix-6e7ce6b67efe767dd61cb7653e7baef71eb9c369.tar.bz2 wix-6e7ce6b67efe767dd61cb7653e7baef71eb9c369.zip | |
Merge Dependency.wixext
Diffstat (limited to 'src/ext/Dependency/ca/dllmain.cpp')
| -rw-r--r-- | src/ext/Dependency/ca/dllmain.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/ext/Dependency/ca/dllmain.cpp b/src/ext/Dependency/ca/dllmain.cpp new file mode 100644 index 00000000..7d299feb --- /dev/null +++ b/src/ext/Dependency/ca/dllmain.cpp | |||
| @@ -0,0 +1,27 @@ | |||
| 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 custom actions. | ||
| 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 | ::DisableThreadLibraryCalls(hInstance); | ||
| 19 | break; | ||
| 20 | |||
| 21 | case DLL_PROCESS_DETACH: | ||
| 22 | WcaGlobalFinalize(); | ||
| 23 | break; | ||
| 24 | } | ||
| 25 | |||
| 26 | return TRUE; | ||
| 27 | } | ||
