windows-nt/Source/XPSP1/NT/base/win32/fusion/installer/dll/dllmain.cpp

39 lines
849 B
C++
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
#include <fusenetincludes.h>
#include <msxml2.h>
#include <manifestimport.h>
//#include <idp.h>
#include <sxsapi.h>
//#include <sxsid.h>
HINSTANCE g_hInst = NULL;
extern HANDLE g_hNamedEvent;
//----------------------------------------------------------------------------
BOOL WINAPI DllMain( HINSTANCE hInst, DWORD dwReason, LPVOID pvReserved )
{
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
g_hInst = hInst;
DisableThreadLibraryCalls(hInst);
CAssemblyManifestImport::InitGlobalCritSect();
break;
case DLL_PROCESS_DETACH:
break;
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
break;
}
return TRUE;
}
STDAPI DllInstall(BOOL bInstall, LPCWSTR pszCmdLine)
{
return S_OK;
}