diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-05-11 07:54:21 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-05-11 07:54:21 -0700 |
| commit | 16418426b75fc6449a26f2b07844ecf046a6564f (patch) | |
| tree | d4f114a782e1231d94de7a0bebe619c713ba03f4 /src/ext/DirectX/ca/dllmain.cpp | |
| parent | ceaf0c2508f3b09e49a72a98eb4d31caaa2f1d7c (diff) | |
| parent | fe2f7e06c595a4e7115d83c4cc8a05b28db5002a (diff) | |
| download | wix-16418426b75fc6449a26f2b07844ecf046a6564f.tar.gz wix-16418426b75fc6449a26f2b07844ecf046a6564f.tar.bz2 wix-16418426b75fc6449a26f2b07844ecf046a6564f.zip | |
Merge DirectX.wixext
Diffstat (limited to 'src/ext/DirectX/ca/dllmain.cpp')
| -rw-r--r-- | src/ext/DirectX/ca/dllmain.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/ext/DirectX/ca/dllmain.cpp b/src/ext/DirectX/ca/dllmain.cpp new file mode 100644 index 00000000..df53f872 --- /dev/null +++ b/src/ext/DirectX/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 | } | ||
