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.

47 lines
709 B

  1. /*++
  2. Copyright (C) 1998-2001 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. History:
  6. --*/
  7. //////////////////////////////////////////////////////////////////////
  8. //
  9. // Service.cpp
  10. //
  11. // Created by a-dcrews, Oct. 6, 1998
  12. //
  13. //////////////////////////////////////////////////////////////////////
  14. #include "HiPerStress.h"
  15. #include "Service.h"
  16. CService::CService(WCHAR* wcsNameSpace, IWbemServices* pSvc)
  17. {
  18. pSvc->AddRef();
  19. m_pService = pSvc;
  20. wcscpy(m_wcsNameSpace, wcsNameSpace);
  21. }
  22. CService::~CService()
  23. {
  24. if (m_pService)
  25. m_pService->Release();
  26. }
  27. void CService::GetName(WCHAR *wcsNameSpace)
  28. {
  29. wcscpy(wcsNameSpace, m_wcsNameSpace);
  30. }
  31. IWbemServices* CService::GetService()
  32. {
  33. return m_pService;
  34. }