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
1.1 KiB

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