blob: 7d299febbeec06d834b8f268b5c02ca71d3ec361 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// 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.
#include "precomp.h"
/********************************************************************
DllMain - standard entry point for all WiX custom actions.
********************************************************************/
extern "C" BOOL WINAPI DllMain(
IN HINSTANCE hInstance,
IN ULONG ulReason,
IN LPVOID)
{
switch(ulReason)
{
case DLL_PROCESS_ATTACH:
WcaGlobalInitialize(hInstance);
::DisableThreadLibraryCalls(hInstance);
break;
case DLL_PROCESS_DETACH:
WcaGlobalFinalize();
break;
}
return TRUE;
}
|