/*++ Copyright (c) 1994-1998 Microsoft Corporation Module Name : authent.cpp Abstract: WWW Authentication Dialog Definitions Author: Ronald Meijer (ronaldm) Project: Internet Services Manager Revision History: --*/ class CAuthenticationDlg : public CDialog /*++ Class Description: Authentication dialog Public Interface: CAuthenticationDlg : Constructor --*/ { // // Construction // public: CAuthenticationDlg( IN LPCTSTR lpstrServerName, // For API name only IN DWORD dwInstance, // For use in ocx only IN CString & strBasicDomain, IN CString & strRealm, IN DWORD & dwAuthFlags, IN DWORD & dwAccessPermissions, IN CString & strUserName, IN CString & strPassword, IN BOOL & fPasswordSync, IN BOOL fAdminAccess, IN BOOL fHasDigest, IN CWnd * pParent = NULL ); // // Dialog Data // protected: //{{AFX_DATA(CAuthenticationDlg) enum { IDD = IDD_AUTHENTICATION }; CButton m_check_Anonymous; CEdit m_edit_UserName; CEdit m_edit_Password; CButton m_chk_PasswordSync; BOOL m_fClearText; BOOL m_fDigest; BOOL m_fChallengeResponse; BOOL m_fAnonymous; CButton m_check_ChallengeResponse; CButton m_check_ClearText; CButton m_check_Digest; // CButton m_button_EditAnonymous; // CButton m_button_Edit; CEdit m_edit_BasicDomain; CButton m_btn_SelectDomain; CEdit m_edit_Realm; CButton m_btn_SelectRealm; //}}AFX_DATA // // Overrides // protected: // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CAuthenticationDlg) protected: virtual void DoDataExchange(CDataExchange * pDX); //}}AFX_VIRTUAL // // Implementation // protected: // Generated message map functions //{{AFX_MSG(CAuthenticationDlg) virtual BOOL OnInitDialog(); afx_msg void OnButtonBrowseUsers(); afx_msg void OnCheckEnablePwSynchronization(); afx_msg void OnChangeEditUsername(); virtual void OnOK(); afx_msg void OnCheckClearText(); afx_msg void OnCheckAnonymous(); afx_msg void OnCheckDigest(); afx_msg void OnButtonSelectDomain(); afx_msg void OnButtonSelectRealm(); //}}AFX_MSG afx_msg void OnItemChanged(); DECLARE_MESSAGE_MAP() void SetControlStates(); HRESULT BrowseDomain(CString& domain); private: BOOL & m_fPasswordSync; BOOL m_fPasswordSyncChanged; BOOL m_fPasswordSyncMsgShown; BOOL m_fAdminAccess; BOOL m_fHasDigest; BOOL m_fChanged; BOOL m_fInDomain; DWORD & m_dwAuthFlags; DWORD & m_dwAccessPermissions; DWORD m_dwInstance; CString & m_strBasicDomain; CString & m_strRealm; CString & m_strUserName; BOOL m_fUserNameChanged; CString & m_strPassword; CString m_strServerName; };