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.

85 lines
2.4 KiB

  1. #include <wzcsapi.h>
  2. #define WIRELESS_ACCESS_NETWORK_ANY 1
  3. #define WIRELESS_ACCESS_NETWORK_AP 2
  4. #define WIRELESS_ACCESS_NETWORK_ADHOC 3
  5. #define WIRELESS_NETWORK_TYPE_ADHOC 1
  6. #define WIRELESS_NETWORK_TYPE_AP 2
  7. #define WIRELESS_8021X_MODE_DISABLE SUPPLICANT_MODE_0
  8. #define WIRELESS_8021X_MODE_NO_TRANSMIT_EAPOLSTART_WIRED SUPPLICANT_MODE_1
  9. #define WIRELESS_8021X_MODE_NAS_TRANSMIT_EAPOLSTART_WIRED SUPPLICANT_MODE_2
  10. #define WIRELESS_8021X_MODE_TRANSMIT_EAPOLSTART_WIRED SUPPLICANT_MODE_3
  11. #define WIRELESS_EAP_TYPE_TLS EAP_TYPE_TLS
  12. #define WIRELESS_EAP_TYPE_MD5 EAP_TYPE_MD5
  13. #define WIRELESS_CERT_TYPE_SMARTCARD EAPOL_CERT_TYPE_SMARTCARD
  14. #define WIRELESS_CERT_TYPE_MC_CERT EAPOL_CERT_TYPE_MC_CERT
  15. #define WIRELESS_MC_AUTH_TYPE_MC_NO_USER EAPOL_AUTH_MODE_0
  16. #define WIRELESS_MC_AUTH_TYPE_USER_DONTCARE_MC EAPOL_AUTH_MODE_1
  17. #define WIRELESS_MC_AUTH_TYPE_MC_ONLY EAPOL_AUTH_MODE_2
  18. #define WIRELESS_MAX_START_DEFAULT 3
  19. #define WIRELESS_START_PERIOD_DEFAULT 60
  20. #define WIRELESS_AUTH_PERIOD_DEFAULT 60
  21. #define WIRELESS_HELD_PERIOD_DEFAULT 60
  22. #define ERROR_PS_NOT_PRESENT 10
  23. #define WL_BLOB_MAJOR_VERSION 1
  24. #define WL_BLOB_MINOR_VERSION 0
  25. typedef struct _WIRELESS_PREFERRED_SETTING_DATA {
  26. DWORD dwPSLen;
  27. WCHAR pszWirelessSSID[32];
  28. DWORD dwWirelessSSIDLen;
  29. DWORD dwId;
  30. DWORD dwWepEnabled;
  31. DWORD dwNetworkAuthentication;
  32. DWORD dwAutomaticKeyProvision;
  33. DWORD dwNetworkType;
  34. DWORD dwEnable8021x;
  35. DWORD dw8021xMode;
  36. DWORD dwEapType;
  37. LPBYTE pbEAPData;
  38. DWORD dwEAPDataLen;
  39. DWORD dwMachineAuthentication;
  40. DWORD dwMachineAuthenticationType;
  41. DWORD dwGuestAuthentication;
  42. DWORD dwIEEE8021xMaxStart;
  43. DWORD dwIEEE8021xStartPeriod;
  44. DWORD dwIEEE8021xAuthPeriod;
  45. DWORD dwIEEE8021xHeldPeriod;
  46. DWORD dwWhenChanged;
  47. DWORD dwDescriptionLen;
  48. LPWSTR pszDescription;
  49. } WIRELESS_PS_DATA, *PWIRELESS_PS_DATA;
  50. typedef struct _WIRELESS_POLICY_DATA {
  51. WORD wMajorVersion;
  52. WORD wMinorVersion;
  53. GUID PolicyIdentifier;
  54. DWORD dwPollingInterval;
  55. DWORD dwDisableZeroConf;
  56. DWORD dwNetworkToAccess;
  57. DWORD dwConnectToNonPreferredNtwks;
  58. DWORD dwNumPreferredSettings;
  59. PWIRELESS_PS_DATA *ppWirelessPSData;
  60. DWORD dwWhenChanged;
  61. DWORD dwNumAPNetworks;
  62. LPWSTR pszWirelessName;
  63. LPWSTR pszOldWirelessName;
  64. LPWSTR pszDescription;
  65. PRSOP_INFO pRsopInfo;
  66. DWORD dwFlags;
  67. } WIRELESS_POLICY_DATA, *PWIRELESS_POLICY_DATA;