aboutsummaryrefslogtreecommitdiff
path: root/src/ca/dllmain.cpp
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2019-02-03 13:20:43 -0600
committerSean Hall <r.sean.hall@gmail.com>2019-02-03 13:20:43 -0600
commit72f3dceefa2e3893b061e074380794bc60b67b6f (patch)
tree74b812780e2e16b4e30764d92f6294958413ac6f /src/ca/dllmain.cpp
parentd2f21865933c11b8af80b8383e1dbf611a175133 (diff)
downloadwix-72f3dceefa2e3893b061e074380794bc60b67b6f.tar.gz
wix-72f3dceefa2e3893b061e074380794bc60b67b6f.tar.bz2
wix-72f3dceefa2e3893b061e074380794bc60b67b6f.zip
Import code from old v4 repo
Diffstat (limited to 'src/ca/dllmain.cpp')
-rw-r--r--src/ca/dllmain.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/ca/dllmain.cpp b/src/ca/dllmain.cpp
new file mode 100644
index 00000000..7d299feb
--- /dev/null
+++ b/src/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}