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.

39 lines
1.1 KiB

  1. // WMIFilterManager.h : Declaration of the CWMIFilterManager
  2. #ifndef __WMIFILTERMANAGER_H_
  3. #define __WMIFILTERMANAGER_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CWMIFilterManager
  7. class ATL_NO_VTABLE CWMIFilterManager :
  8. public CComObjectRootEx<CComSingleThreadModel>,
  9. public CComCoClass<CWMIFilterManager, &CLSID_WMIFilterManager>,
  10. public IDispatchImpl<IWMIFilterManager, &IID_IWMIFilterManager, &LIBID_SCHEMAMANAGERLib>
  11. {
  12. public:
  13. CWMIFilterManager();
  14. ~CWMIFilterManager();
  15. DECLARE_REGISTRY_RESOURCEID(IDR_WMIFILTERMANAGER)
  16. DECLARE_PROTECT_FINAL_CONSTRUCT()
  17. BEGIN_COM_MAP(CWMIFilterManager)
  18. COM_INTERFACE_ENTRY(IWMIFilterManager)
  19. COM_INTERFACE_ENTRY(IDispatch)
  20. END_COM_MAP()
  21. // IWMIFilterManager
  22. public:
  23. STDMETHOD(SetMultiSelection)(VARIANT_BOOL vbValue);
  24. STDMETHOD(RunManager)(HWND hwndParent, BSTR bstrDomain, VARIANT *vSelection);
  25. STDMETHOD(RunBrowser)(HWND hwndParent, BSTR bstrDomain, VARIANT *vSelection);
  26. STDMETHOD(ConnectToWMI)();
  27. CComPtr<IWbemServices>m_pIWbemServices;
  28. HWND m_hWnd;
  29. };
  30. #endif //__WMIFILTERMANAGER_H_