Leaked source code of windows server 2003
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.

82 lines
2.8 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997.
  5. //
  6. // File: L A N U I . H
  7. //
  8. // Contents: Lan connection UI object.
  9. //
  10. // Notes:
  11. //
  12. // Author: danielwe 16 Oct 1997
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. class CEapolConfig;
  17. class CWZCConfigPage;
  18. //
  19. // CWLANAuthenticationPage Property Page
  20. //
  21. class CWLANAuthenticationPage: public CPropSheetPage
  22. {
  23. public:
  24. BEGIN_MSG_MAP(CWLANAuthenticationPage)
  25. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  26. MESSAGE_HANDLER(WM_DESTROY, OnDestroy)
  27. MESSAGE_HANDLER(WM_CONTEXTMENU, OnContextMenu);
  28. MESSAGE_HANDLER(WM_HELP, OnHelp);
  29. COMMAND_ID_HANDLER(CID_CA_PB_Properties, OnProperties)
  30. COMMAND_ID_HANDLER(CID_CA_LB_EapPackages, OnEapPackages)
  31. COMMAND_ID_HANDLER(CID_CA_RB_Eap, OnEapSelection)
  32. NOTIFY_CODE_HANDLER(PSN_QUERYCANCEL, OnCancel)
  33. NOTIFY_CODE_HANDLER(PSN_APPLY, OnApply)
  34. NOTIFY_CODE_HANDLER(PSN_KILLACTIVE, OnKillActive)
  35. NOTIFY_CODE_HANDLER(PSN_SETACTIVE, OnSetActive)
  36. END_MSG_MAP()
  37. CWLANAuthenticationPage(
  38. IUnknown* punk,
  39. INetCfg* pnc,
  40. INetConnection* pconn,
  41. const DWORD * adwHelpIDs = NULL);
  42. ~CWLANAuthenticationPage();
  43. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam,
  44. LPARAM lParam, BOOL& bHandled);
  45. LRESULT OnContextMenu(UINT uMsg, WPARAM wParam, LPARAM lParam,
  46. BOOL& bHandled);
  47. LRESULT OnHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  48. LRESULT OnDestroy(UINT uMsg, WPARAM wParam,
  49. LPARAM lParam, BOOL& bHandled);
  50. LRESULT OnProperties(WORD wNotifyCode, WORD wID, HWND hWndCtl,
  51. BOOL& bHandled);
  52. LRESULT OnEapPackages(WORD wNotifyCode, WORD wID, HWND hWndCtl,
  53. BOOL& bHandled);
  54. LRESULT OnEapSelection(WORD wNotifyCode, WORD wID, HWND hWndCtl,
  55. BOOL& bHandled);
  56. LRESULT OnKillActive(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  57. LRESULT OnSetActive(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  58. LRESULT OnApply(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  59. LRESULT OnCancel(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  60. public:
  61. LRESULT UploadEapolConfig(CEapolConfig *pEapolConfig, CWZCConfigPage *pWzcPage);
  62. private:
  63. INetConnection * m_pconn;
  64. INetCfg * m_pnc;
  65. IUnknown * m_punk;
  66. const DWORD * m_adwHelpIDs;
  67. CEapolConfig *m_pEapolConfig;
  68. CWZCConfigPage *m_pWzcPage;
  69. BOOLEAN m_fNetcfgInUse;
  70. LRESULT RefreshControls();
  71. };