aboutsummaryrefslogtreecommitdiff
path: root/src/ext/ComPlus/ca/dllmain.cpp
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2021-05-11 07:50:20 -0700
committerRob Mensching <rob@firegiant.com>2021-05-11 07:50:20 -0700
commit4608361a88ef82e15caf3574ac107486f5fe135c (patch)
tree2fdc12df96dda724bfc6b5c87edf7eded1bb6249 /src/ext/ComPlus/ca/dllmain.cpp
parent499ea135605261f631650b6c383f6e5063b097d5 (diff)
parent337124bed6a57b40fca11c5c2f5b554f570522a6 (diff)
downloadwix-4608361a88ef82e15caf3574ac107486f5fe135c.tar.gz
wix-4608361a88ef82e15caf3574ac107486f5fe135c.tar.bz2
wix-4608361a88ef82e15caf3574ac107486f5fe135c.zip
Merge ComPlus.wixext
Diffstat (limited to 'src/ext/ComPlus/ca/dllmain.cpp')
-rw-r--r--src/ext/ComPlus/ca/dllmain.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/ext/ComPlus/ca/dllmain.cpp b/src/ext/ComPlus/ca/dllmain.cpp
new file mode 100644
index 00000000..7d299feb
--- /dev/null
+++ b/src/ext/ComPlus/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/********************************************************************
6DllMain - standard entry point for all WiX custom actions.
7
8********************************************************************/
9extern "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}