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.

120 lines
3.1 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 2000 **/
  4. /**********************************************************************/
  5. /*
  6. pgauthen.h
  7. Definition of CPgAuthentication -- property page to edit
  8. profile attributes related to Authenticaion
  9. FILE HISTORY:
  10. */
  11. #if !defined(AFX_PGAUTHEN_H__8C28D93F_2A69_11D1_853E_00C04FC31FD3__INCLUDED_)
  12. #define AFX_PGAUTHEN_H__8C28D93F_2A69_11D1_853E_00C04FC31FD3__INCLUDED_
  13. #if _MSC_VER >= 1000
  14. #pragma once
  15. #endif // _MSC_VER >= 1000
  16. // PgAuthen.h : header file
  17. //
  18. #include "rasdial.h"
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CPgAuthenticationMerge dialog
  21. class CPgAuthenticationMerge : public CManagedPage
  22. {
  23. DECLARE_DYNCREATE(CPgAuthenticationMerge)
  24. // Construction
  25. public:
  26. CPgAuthenticationMerge(CRASProfileMerge* profile = NULL);
  27. ~CPgAuthenticationMerge();
  28. // Dialog Data
  29. //{{AFX_DATA(CPgAuthenticationMerge)
  30. enum { IDD = IDD_AUTHENTICATION_MERGE };
  31. BOOL m_bEAP;
  32. BOOL m_bMD5Chap;
  33. BOOL m_bMSChap;
  34. BOOL m_bPAP;
  35. CString m_strEapType;
  36. BOOL m_bMSCHAP2;
  37. BOOL m_bUNAUTH;
  38. BOOL m_bMSChapPass;
  39. BOOL m_bMSChap2Pass;
  40. //}}AFX_DATA
  41. // orginal value before edit
  42. BOOL m_bOrgEAP;
  43. BOOL m_bOrgMD5Chap;
  44. BOOL m_bOrgMSChap;
  45. BOOL m_bOrgPAP;
  46. BOOL m_bOrgMSCHAP2;
  47. BOOL m_bOrgUNAUTH;
  48. BOOL m_bOrgChapPass;
  49. BOOL m_bOrgChap2Pass;
  50. BOOL m_bAppliedEver;
  51. // Overrides
  52. // ClassWizard generate virtual function overrides
  53. //{{AFX_VIRTUAL(CPgAuthenticationMerge)
  54. public:
  55. virtual BOOL OnApply();
  56. virtual void OnOK();
  57. virtual BOOL OnKillActive();
  58. protected:
  59. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  60. //}}AFX_VIRTUAL
  61. // Implementation
  62. protected:
  63. BOOL TransferDataToProfile();
  64. // Generated message map functions
  65. //{{AFX_MSG(CPgAuthenticationMerge)
  66. virtual BOOL OnInitDialog();
  67. afx_msg void OnCheckeap();
  68. afx_msg void OnCheckmd5chap();
  69. afx_msg void OnCheckmschap();
  70. afx_msg void OnCheckpap();
  71. afx_msg void OnSelchangeComboeaptype();
  72. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  73. afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
  74. afx_msg void OnAuthConfigEap();
  75. afx_msg void OnCheckmschap2();
  76. afx_msg void OnChecknoauthen();
  77. afx_msg void OnCheckmschapPass();
  78. afx_msg void OnCheckmschap2Pass();
  79. //}}AFX_MSG
  80. DECLARE_MESSAGE_MAP()
  81. CRASProfileMerge* m_pProfile;
  82. bool m_bInited;
  83. CStrArray m_EapTypes;
  84. CDWArray m_EapIds;
  85. CDWArray m_EapTypeKeys;
  86. AuthProviderArray m_EapInfoArray;
  87. CStrBox<CComboBox> *m_pBox;
  88. };
  89. /////////////////////////////////////////////////////////////////////////////
  90. // CPgAuthentication dialog
  91. struct CAuthenTypeIDC
  92. {
  93. LPCTSTR m_pszName;
  94. int m_id;
  95. };
  96. //{{AFX_INSERT_LOCATION}}
  97. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  98. #endif // !defined(AFX_PGAUTHEN_H__8C28D93F_2A69_11D1_853E_00C04FC31FD3__INCLUDED_)