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.

45 lines
1.8 KiB

  1. #pragma once
  2. ////////////////////////////////////////////////////////////////////////
  3. // CWZCConfig related stuff
  4. //
  5. // flags used in CWZCConfig::m_dwFlags
  6. // the entry is preferred (user defined)
  7. #define WZC_DESCR_PREFRD 0x00000001
  8. // the entry is currently visible in the air
  9. #define WZC_DESCR_VISIBLE 0x00000002
  10. // the entry is currently active (the one plumbed to the adapter)
  11. #define WZC_DESCR_ACTIVE 0x00000004
  12. // flags used to select state & item images
  13. #define WZCIMG_PREFR_NOSEL 0 // empty check box
  14. #define WZCIMG_PREFR_SELECT 1 // checked check box
  15. #define WZCIMG_INFRA_AIRING 2 // infra icon
  16. #define WZCIMG_INFRA_ACTIVE 3 // infra icon + blue circle
  17. #define WZCIMG_INFRA_SILENT 4 // infra icon + red cross
  18. #define WZCIMG_ADHOC_AIRING 5 // adhoc icon
  19. #define WZCIMG_ADHOC_ACTIVE 6 // adhoc icon + blue circle
  20. #define WZCIMG_ADHOC_SILENT 7 // adhoc icon + red cross
  21. // object attached to each entry in the list
  22. class CWZCConfig
  23. {
  24. public:
  25. class CWZCConfig *m_pPrev, *m_pNext;
  26. INT m_nListIndex; // index of the entry in the list
  27. DWORD m_dwFlags; // WZC_DESCR* flags
  28. WZC_WLAN_CONFIG m_wzcConfig; // all WZC configuration
  29. class CEapolConfig *m_pEapolConfig; // all 802.1x configuration
  30. public:
  31. // constructor
  32. CWZCConfig(DWORD dwFlags, PWZC_WLAN_CONFIG pwzcConfig);
  33. // destructor
  34. ~CWZCConfig();
  35. // checks whether this SSID matches with the one from pwzcConfig
  36. BOOL Match(PWZC_WLAN_CONFIG pwzcConfig);
  37. // checks whether this configuration is weaker than the one given as parameter
  38. BOOL Weaker(PWZC_WLAN_CONFIG pwzcConfig);
  39. // add the Configuration to the list of entries in the list view
  40. DWORD AddConfigToListView(HWND hwndLV, INT nPos);
  41. };