mirror of https://github.com/tongzx/nt5src
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.
27 lines
519 B
27 lines
519 B
#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;
|
|
}
|
|
|