mirror of
https://github.com/ckaczor/WixBalExtensionExt.git
synced 2026-01-14 09:59:57 -05:00
38 lines
1.0 KiB
C++
38 lines
1.0 KiB
C++
//-------------------------------------------------------------------------------------------------
|
|
// <copyright file="bafunctions.cpp" company="Outercurve Foundation">
|
|
// Copyright (c) 2004, Outercurve Foundation.
|
|
// This software is released under Microsoft Reciprocal License (MS-RL).
|
|
// The license and further copyright text can be found in the file
|
|
// LICENSE.TXT at the root directory of the distribution.
|
|
// </copyright>
|
|
//
|
|
// <summary>
|
|
// Entry point for bootstrapper BA function DLL.
|
|
// </summary>
|
|
//-------------------------------------------------------------------------------------------------
|
|
|
|
#include "precomp.h"
|
|
|
|
static HINSTANCE vhInstance = NULL;
|
|
|
|
extern "C" BOOL WINAPI DllMain(
|
|
IN HINSTANCE hInstance,
|
|
IN DWORD dwReason,
|
|
IN LPVOID /* pvReserved */
|
|
)
|
|
{
|
|
switch(dwReason)
|
|
{
|
|
case DLL_PROCESS_ATTACH:
|
|
::DisableThreadLibraryCalls(hInstance);
|
|
vhInstance = hInstance;
|
|
break;
|
|
|
|
case DLL_PROCESS_DETACH:
|
|
vhInstance = NULL;
|
|
break;
|
|
}
|
|
|
|
return TRUE;
|
|
}
|