Source code of Windows XP (NT5)
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

  1. #include "shsrvice.h"
  2. #include "HDService.h"
  3. void WINAPI HardwareDetectionServiceMain(DWORD cArg, LPWSTR* ppszArgs)
  4. {
  5. // Not used for now
  6. CGenericServiceManager::_fSVCHosted = TRUE;
  7. CGenericServiceManager::_ServiceMain(cArg, ppszArgs);
  8. }
  9. HRESULT CHDService::Install(BOOL fInstall, LPCWSTR)
  10. {
  11. CGenericServiceManager::_fSVCHosted = TRUE;
  12. if (fInstall)
  13. {
  14. CGenericServiceManager::Install();
  15. }
  16. else
  17. {
  18. CGenericServiceManager::UnInstall();
  19. }
  20. return NOERROR;
  21. }