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.

38 lines
865 B

  1. //***********************************************
  2. // Microsoft Confidential
  3. // Copyright (c) Microsoft Corporation 2000
  4. // All rights reserved
  5. //
  6. // WMI interface class
  7. //
  8. // History: 10-Mar-00 SitaramR Created
  9. //
  10. //*************************************************************
  11. #include "windows.h"
  12. #include "ole2.h"
  13. #include "rsopdbg.h"
  14. #include <initguid.h>
  15. #include <wbemcli.h>
  16. class CLocator
  17. {
  18. public:
  19. CLocator() {}
  20. IWbemLocator * GetWbemLocator();
  21. IWbemServices * GetPolicyConnection();
  22. IWbemServices * GetUserConnection();
  23. IWbemServices * GetMachConnection();
  24. private:
  25. XInterface<IWbemLocator> m_xpWbemLocator;
  26. XInterface<IWbemServices> m_xpPolicyConnection;
  27. XInterface<IWbemServices> m_xpUserConnection;
  28. XInterface<IWbemServices> m_xpMachConnection;
  29. };