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.

27 lines
501 B

  1. #include <nt.h>
  2. #include <ntrtl.h>
  3. #include <nturtl.h>
  4. #include <windows.h>
  5. #include "shsrvice.h"
  6. #include "HDService.h"
  7. void WINAPI HardwareDetectionServiceMain(DWORD cArg, LPWSTR* ppszArgs)
  8. {
  9. CGenericServiceManager::_ServiceMain(cArg, ppszArgs);
  10. }
  11. HRESULT CHDService::Install(BOOL fInstall, LPCWSTR)
  12. {
  13. if (fInstall)
  14. {
  15. CGenericServiceManager::Install();
  16. }
  17. else
  18. {
  19. CGenericServiceManager::UnInstall();
  20. }
  21. return NOERROR;
  22. }