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.

115 lines
2.2 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 DWORD & dwAuthFlags,
  30. IN DWORD & dwAccessPermissions,
  31. IN CString & strUserName,
  32. IN CString & strPassword,
  33. IN BOOL & fPasswordSync,
  34. IN BOOL fAdminAccess,
  35. IN BOOL fHasDigest,
  36. IN CWnd * pParent = NULL
  37. );
  38. //
  39. // Dialog Data
  40. //
  41. protected:
  42. //{{AFX_DATA(CAuthenticationDlg)
  43. enum { IDD = IDD_AUTHENTICATION };
  44. BOOL m_fClearText;
  45. BOOL m_fDigest;
  46. BOOL m_fChallengeResponse;
  47. BOOL m_fUUEncoded;
  48. CButton m_check_UUEncoded;
  49. CButton m_check_ChallengeResponse;
  50. CButton m_check_ClearText;
  51. CButton m_check_Digest;
  52. CButton m_button_EditAnonymous;
  53. CButton m_button_Edit;
  54. //}}AFX_DATA
  55. //
  56. // Overrides
  57. //
  58. protected:
  59. // ClassWizard generated virtual function overrides
  60. //{{AFX_VIRTUAL(CAuthenticationDlg)
  61. protected:
  62. virtual void DoDataExchange(CDataExchange * pDX);
  63. //}}AFX_VIRTUAL
  64. //
  65. // Implementation
  66. //
  67. protected:
  68. // Generated message map functions
  69. //{{AFX_MSG(CAuthenticationDlg)
  70. virtual BOOL OnInitDialog();
  71. virtual void OnOK();
  72. afx_msg void OnCheckClearText();
  73. afx_msg void OnCheckUuencoded();
  74. afx_msg void OnCheckDigest();
  75. afx_msg void OnButtonEdit();
  76. afx_msg void OnButtonEditAnonymous();
  77. //}}AFX_MSG
  78. DECLARE_MESSAGE_MAP()
  79. void SetControlStates();
  80. private:
  81. BOOL & m_fPasswordSync;
  82. BOOL m_fAdminAccess;
  83. BOOL m_fHasDigest;
  84. DWORD & m_dwAuthFlags;
  85. DWORD & m_dwAccessPermissions;
  86. DWORD m_dwInstance;
  87. CString & m_strBasicDomain;
  88. CString & m_strUserName;
  89. CString & m_strPassword;
  90. CString m_strServerName;
  91. };