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.

48 lines
1.6 KiB

  1. extern "C" {
  2. #include "ntddndis.h"
  3. #include "wzcsapi.h"
  4. }
  5. #pragma once
  6. class CWZCConfig;
  7. ////////////////////////////////////////////////////////////////////////
  8. // CWZCConfigProps related stuff
  9. //
  10. class CWZCConfigProps:
  11. public CDialogImpl<CWZCConfigProps>
  12. {
  13. protected:
  14. BEGIN_MSG_MAP(CWZCConfigProps)
  15. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  16. MESSAGE_HANDLER(WM_CONTEXTMENU, OnContextMenu)
  17. MESSAGE_HANDLER(WM_HELP, OnHelp)
  18. COMMAND_ID_HANDLER(IDOK, OnOK)
  19. COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
  20. COMMAND_ID_HANDLER(IDCLOSE, OnCancel)
  21. END_MSG_MAP()
  22. enum {IDD = IDC_WZC_DLG_VPROPS};
  23. // Handles to all the UI controls managed
  24. // by this class (all related to Wireless
  25. // Zero Configuration)
  26. HWND m_hwndEdSSID; // "Service Set Identifier:" edit
  27. HWND m_hwndChkAdhoc; // "Adhoc" vs "Infra" checkbox
  28. HWND m_hwndUsePW; // "Use Password" checkbox
  29. public:
  30. // wzc configuration settings
  31. WZC_WLAN_CONFIG m_wzcConfig;
  32. // class constructor
  33. CWZCConfigProps();
  34. // initialize the wzc config data
  35. DWORD UploadWzcConfig(CWZCConfig *pwzcConfig);
  36. // Dialog related members
  37. LRESULT OnInitDialog (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  38. LRESULT OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  39. LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  40. LRESULT OnContextMenu(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  41. LRESULT OnHelp(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  42. };