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.

134 lines
2.8 KiB

  1. /*++
  2. Copyright (c) 1994-1998 Microsoft Corporation
  3. Module Name :
  4. authent.cpp
  5. Abstract:
  6. WWW Authentication Dialog Definitions
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. class CAuthenticationDlg : public CDialog
  14. /*++
  15. Class Description:
  16. Authentication dialog
  17. Public Interface:
  18. CAuthenticationDlg : Constructor
  19. --*/
  20. {
  21. //
  22. // Construction
  23. //
  24. public:
  25. CAuthenticationDlg(
  26. IN LPCTSTR lpstrServerName, // For API name only
  27. IN DWORD dwInstance, // For use in ocx only
  28. IN CString & strBasicDomain,
  29. IN CString & strRealm,
  30. IN DWORD & dwAuthFlags,
  31. IN DWORD & dwAccessPermissions,
  32. IN CString & strUserName,
  33. IN CString & strPassword,
  34. IN BOOL & fPasswordSync,
  35. IN BOOL fAdminAccess,
  36. IN BOOL fHasDigest,
  37. IN CWnd * pParent = NULL
  38. );
  39. //
  40. // Dialog Data
  41. //
  42. protected:
  43. //{{AFX_DATA(CAuthenticationDlg)
  44. enum { IDD = IDD_AUTHENTICATION };
  45. CButton m_check_Anonymous;
  46. CEdit m_edit_UserName;
  47. CEdit m_edit_Password;
  48. CButton m_chk_PasswordSync;
  49. BOOL m_fClearText;
  50. BOOL m_fDigest;
  51. BOOL m_fChallengeResponse;
  52. BOOL m_fAnonymous;
  53. CButton m_check_ChallengeResponse;
  54. CButton m_check_ClearText;
  55. CButton m_check_Digest;
  56. // CButton m_button_EditAnonymous;
  57. // CButton m_button_Edit;
  58. CEdit m_edit_BasicDomain;
  59. CButton m_btn_SelectDomain;
  60. CEdit m_edit_Realm;
  61. CButton m_btn_SelectRealm;
  62. //}}AFX_DATA
  63. //
  64. // Overrides
  65. //
  66. protected:
  67. // ClassWizard generated virtual function overrides
  68. //{{AFX_VIRTUAL(CAuthenticationDlg)
  69. protected:
  70. virtual void DoDataExchange(CDataExchange * pDX);
  71. //}}AFX_VIRTUAL
  72. //
  73. // Implementation
  74. //
  75. protected:
  76. // Generated message map functions
  77. //{{AFX_MSG(CAuthenticationDlg)
  78. virtual BOOL OnInitDialog();
  79. afx_msg void OnButtonBrowseUsers();
  80. afx_msg void OnCheckEnablePwSynchronization();
  81. afx_msg void OnChangeEditUsername();
  82. virtual void OnOK();
  83. afx_msg void OnCheckClearText();
  84. afx_msg void OnCheckAnonymous();
  85. afx_msg void OnCheckDigest();
  86. afx_msg void OnButtonSelectDomain();
  87. afx_msg void OnButtonSelectRealm();
  88. //}}AFX_MSG
  89. afx_msg void OnItemChanged();
  90. DECLARE_MESSAGE_MAP()
  91. void SetControlStates();
  92. HRESULT BrowseDomain(CString& domain);
  93. private:
  94. BOOL & m_fPasswordSync;
  95. BOOL m_fPasswordSyncChanged;
  96. BOOL m_fPasswordSyncMsgShown;
  97. BOOL m_fAdminAccess;
  98. BOOL m_fHasDigest;
  99. BOOL m_fChanged;
  100. BOOL m_fInDomain;
  101. DWORD & m_dwAuthFlags;
  102. DWORD & m_dwAccessPermissions;
  103. DWORD m_dwInstance;
  104. CString & m_strBasicDomain;
  105. CString & m_strRealm;
  106. CString & m_strUserName;
  107. BOOL m_fUserNameChanged;
  108. CString & m_strPassword;
  109. CString m_strServerName;
  110. };