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.
 
 
 
 
 
 

48 lines
747 B

#include "windows.h"
#include "sxsexpress.h"
#include "stdlib.h"
#include "stdio.h"
HINSTANCE g_hOurInstance = NULL;
BOOL WINAPI
DllMain(
HINSTANCE hDllHandle,
DWORD dwReason,
PVOID pvReserved
)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
g_hOurInstance = hDllHandle;
}
return TRUE;
}
HRESULT
DllInstall(
BOOL bInstall,
PCWSTR pcwszCommandLine
)
{
if (bInstall)
{
return SxsExpressCore(g_hOurInstance) ? S_OK : HRESULT_FROM_WIN32(GetLastError());
}
else
{
return E_NOTIMPL;
}
}
HRESULT
PerformInstallation(
BOOL bInstall,
PCSTR pcszCommandLine
)
{
return DllInstall(bInstall, NULL);
}