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.

80 lines
1.8 KiB

  1. /*++
  2. Copyright (C) 1997-2001 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. History:
  6. --*/
  7. #if !defined(AFX_NAMESPACEDLG_H__DFA6B3D0_FDAA_4E25_BFC8_32B1C4E1A932__INCLUDED_)
  8. #define AFX_NAMESPACEDLG_H__DFA6B3D0_FDAA_4E25_BFC8_32B1C4E1A932__INCLUDED_
  9. #if _MSC_VER > 1000
  10. #pragma once
  11. #endif // _MSC_VER > 1000
  12. // NamespaceDlg.h : header file
  13. //
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CNamespaceDlg dialog
  16. class CNamespaceDlg : public CDialog
  17. {
  18. // Construction
  19. public:
  20. CNamespaceDlg(CWnd* pParent = NULL); // standard constructor
  21. // Dialog Data
  22. CString m_strUser,
  23. m_strPassword,
  24. m_strAuthority;
  25. BOOL m_bNullPassword;
  26. DWORD m_dwAuthLevel,
  27. m_dwImpLevel;
  28. //{{AFX_DATA(CNamespaceDlg)
  29. enum { IDD = IDD_NAMESPACE };
  30. CTreeCtrl m_ctlNamespace;
  31. CString m_strNamespace;
  32. //}}AFX_DATA
  33. // Overrides
  34. // ClassWizard generated virtual function overrides
  35. //{{AFX_VIRTUAL(CNamespaceDlg)
  36. protected:
  37. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  38. //}}AFX_VIRTUAL
  39. // Implementation
  40. protected:
  41. CString m_strServer;
  42. BOOL PopulateTree();
  43. void RefreshNamespaceText();
  44. BOOL AddNamespaceToTree(
  45. HTREEITEM hitemParent,
  46. LPCWSTR szNamespace,
  47. IWbemLocator *pLocator,
  48. BSTR pUser,
  49. BSTR pPassword,
  50. BSTR pAuthority,
  51. DWORD dwImpLevel,
  52. DWORD dwAuthLevel);
  53. // Generated message map functions
  54. //{{AFX_MSG(CNamespaceDlg)
  55. virtual BOOL OnInitDialog();
  56. afx_msg void OnSelchangedNamespaceTree(NMHDR* pNMHDR, LRESULT* pResult);
  57. //}}AFX_MSG
  58. DECLARE_MESSAGE_MAP()
  59. };
  60. //{{AFX_INSERT_LOCATION}}
  61. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  62. #endif // !defined(AFX_NAMESPACEDLG_H__DFA6B3D0_FDAA_4E25_BFC8_32B1C4E1A932__INCLUDED_)