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.

78 lines
1.9 KiB

  1. #if !defined(AFX_WMIBROWSEDLG_H__EDFA0EA3_112B_11D3_9386_00A0CC406605__INCLUDED_)
  2. #define AFX_WMIBROWSEDLG_H__EDFA0EA3_112B_11D3_9386_00A0CC406605__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // WmiBrowseDlg.h : header file
  7. //
  8. #include "WbemClassObject.h"
  9. #include "ResizeableDialog.h"
  10. #include "HMList.h"
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CWmiBrowseDlg dialog
  13. class CWmiBrowseDlg : public CResizeableDialog
  14. {
  15. // Construction
  16. public:
  17. CWmiBrowseDlg(CWnd* pParent = NULL); // standard constructor
  18. // Dialog Data
  19. //{{AFX_DATA(CWmiBrowseDlg)
  20. enum { IDD = IDD_DIALOG_WMI_BROWSE };
  21. CHMList m_Items;
  22. CString m_sTitle;
  23. //}}AFX_DATA
  24. CString m_sDlgTitle;
  25. CWbemClassObject m_ClassObject;
  26. CString m_sSelectedItem;
  27. // Overrides
  28. // ClassWizard generated virtual function overrides
  29. //{{AFX_VIRTUAL(CWmiBrowseDlg)
  30. protected:
  31. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  32. //}}AFX_VIRTUAL
  33. // Implementation
  34. protected:
  35. // Generated message map functions
  36. //{{AFX_MSG(CWmiBrowseDlg)
  37. virtual BOOL OnInitDialog();
  38. afx_msg void OnButtonHelp();
  39. virtual void OnOK();
  40. afx_msg void OnDblclkListWmiItems(NMHDR* pNMHDR, LRESULT* pResult);
  41. //}}AFX_MSG
  42. DECLARE_MESSAGE_MAP()
  43. };
  44. class CWmiNamespaceBrowseDlg : public CWmiBrowseDlg
  45. {
  46. // Implementation
  47. protected:
  48. virtual BOOL OnInitDialog();
  49. void EnumerateAllChildNamespaces(const CString& sNamespace);
  50. };
  51. class CWmiClassBrowseDlg : public CWmiBrowseDlg
  52. {
  53. // Implementation
  54. protected:
  55. virtual BOOL OnInitDialog();
  56. };
  57. class CWmiInstanceBrowseDlg : public CWmiBrowseDlg
  58. {
  59. // Implementation
  60. protected:
  61. virtual BOOL OnInitDialog();
  62. };
  63. //{{AFX_INSERT_LOCATION}}
  64. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  65. #endif // !defined(AFX_WMIBROWSEDLG_H__EDFA0EA3_112B_11D3_9386_00A0CC406605__INCLUDED_)