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.

39 lines
702 B

  1. /*++
  2. Copyright (C) 1998-2001 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. History:
  6. --*/
  7. //////////////////////////////////////////////////////////////////////
  8. //
  9. // Service.h
  10. //
  11. // CService is a wrapper class for an IWbemServices object.
  12. // The object must be created, and then passed to the constructor
  13. // as an argument.
  14. //
  15. //////////////////////////////////////////////////////////////////////
  16. #ifndef _SERVICE_H_
  17. #define _SERVICE_H_
  18. class CService
  19. {
  20. IWbemServices* m_pService;
  21. WCHAR m_wcsNameSpace[1024];
  22. public:
  23. CService(WCHAR* wcsNameSpace, IWbemServices* pSvc);
  24. virtual ~CService();
  25. void GetName(WCHAR *wcsNameSpace);
  26. IWbemServices* GetService();
  27. };
  28. #endif // _SERVICE_H_