Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
680 B

#include "pch.h"
#include "migrate.h"
HINSTANCE g_hInstance = NULL;
STDAPI_(BOOL) DllMain(HANDLE hDll, DWORD dwReason, void *lpReserved)
{
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
// Open log; FALSE means do not delete existing log
SetupOpenLog(FALSE);
g_hInstance = (HINSTANCE)hDll;
break;
case DLL_PROCESS_DETACH:
if (g_lpNameBuf)
LocalFree(g_lpNameBuf);
if (g_lpWorkingDir)
LocalFree(g_lpWorkingDir);
if (g_lpSourceDirs)
LocalFree(g_lpSourceDirs);
SetupCloseLog();
break;
default:
break;
}
return TRUE;
}