windows-nt/Source/XPSP1/NT/shell/services/hdsrv/shsrvice/svchost.cpp
2020-09-26 16:20:57 +08:00

28 lines
519 B
C++

#include "shsrvice.h"
#include "HDService.h"
void WINAPI HardwareDetectionServiceMain(DWORD cArg, LPWSTR* ppszArgs)
{
// Not used for now
CGenericServiceManager::_fSVCHosted = TRUE;
CGenericServiceManager::_ServiceMain(cArg, ppszArgs);
}
HRESULT CHDService::Install(BOOL fInstall, LPCWSTR)
{
CGenericServiceManager::_fSVCHosted = TRUE;
if (fInstall)
{
CGenericServiceManager::Install();
}
else
{
CGenericServiceManager::UnInstall();
}
return NOERROR;
}