ONEX_REASON_CODE 枚举通常用于 Windows 的 Win32 API 中,特别是在 Dot1x.h 头文件中,用于标识 802.1X 认证过程中的原因代码。这些代码用于表示认证过程中发生的事件或错误的原因。

以下是一个可能的定义,尽管确切的定义可能会根据使用的 SDK 版本和环境而有所不同:
typedef enum _ONEX_REASON_CODE {
  ONEX_REASON_CODE_SUCCESS = 0,
  ONEX_REASON_CODE_FAILURE,
  ONEX_REASON_CODE_CONNECTING,
  ONEX_REASON_CODE_AUTHENTICATING,
  ONEX_REASON_CODE_AUTH_FAILURE,
  ONEX_REASON_CODE_AUTH_TIMEOUT,
  ONEX_REASON_CODE_USER_LOGOFF,
  ONEX_REASON_CODE_EAP_FAILURE,
  ONEX_REASON_CODE_INVALID_802_1X_CONFIGURATION,
  ONEX_REASON_CODE_EAP_TIMEOUT,
  ONEX_REASON_CODE_PRE_LOGON_CONNECTIVITY,
  ONEX_REASON_CODE_PRE_LOGON_TIMEOUT,
  ONEX_REASON_CODE_PRE_LOGON_FAILURE,
  ONEX_REASON_CODE_USER_DENIED,
  ONEX_REASON_CODE_PROFILE_VERSION_UNSUPPORTED,
  ONEX_REASON_CODE_CONNECTIVITY_CHANGED,
  ONEX_REASON_CODE_CONFIG_EXPIRED,
  ONEX_REASON_CODE_USER_DISCONNECT,
  ONEX_REASON_CODE_PORT_STATUS_NOTIFICATION,
  ONEX_REASON_CODE_SERVER_CERT_NOTIFICATION,
  ONEX_REASON_CODE_CERTIFICATE_FAILURE,
  ONEX_REASON_CODE_FAST_ROAM_FAILURE,
  ONEX_REASON_CODE_UI_REQUESTED,
  ONEX_REASON_CODE_GUEST_ACCESS_NETWORK,
  ONEX_REASON_CODE_MULTI_REASON,
  ONEX_REASON_CODE_MULTI_REASON_TIMER,
  ONEX_REASON_CODE_MULTI_REASON_EXCEEDED,
  ONEX_REASON_CODE_CONNECTIVITY_CHANGED_EX,
  ONEX_REASON_CODE_CAPABILITY_CHANGED,
  ONEX_REASON_CODE_NETWORK_NOT_FOUND,
  ONEX_REASON_CODE_SERVER_SHUTDOWN,
  ONEX_REASON_CODE_HRESULT,
  ONEX_REASON_CODE_EAP_NEGOTIATION_FAILED,
  ONEX_REASON_CODE_INTERFACE_DISABLED,
  ONEX_REASON_CODE_USER_NOT_FOUND,
  ONEX_REASON_CODE_PROC_NOT_FOUND,
  ONEX_REASON_CODE_EAP_LOOPBACK,
  ONEX_REASON_CODE_DOWNGRADE_DETECTED,
  ONEX_REASON_CODE_MACHINE_AUTH_FAILURE,
  ONEX_REASON_CODE_MACHINE_AUTH_TIMEOUT,
  ONEX_REASON_CODE_USER_CANCELLED,
  ONEX_REASON_CODE_INVALID_CERTIFICATE,
  ONEX_REASON_CODE_RECONNECT,
  ONEX_REASON_CODE_FAST_ROAM_SUCCESS,
  ONEX_REASON_CODE_AUTO_CONNECT_TRIGGER,
  ONEX_REASON_CODE_PROFILE_TRIGGER,
  ONEX_REASON_CODE_PCI_BUS_DRIVER_MISSING,
  ONEX_REASON_CODE_EAP_OFFLOAD_FAILED,
  ONEX_REASON_CODE_PRE_ASSOC_CONNECTIVITY_CHANGE,
  ONEX_REASON_CODE_TPM_FAILURE,
  ONEX_REASON_CODE_TPM_SECURITY_OFF,
  ONEX_REASON_CODE_TPM_INTERFACE_ERROR,
  ONEX_REASON_CODE_CERT_NOT_FOUND,
  ONEX_REASON_CODE_PRIVACY_EXEMPTION_FAILURE,
  ONEX_REASON_CODE_PROFILE_TIMEOUT,
  ONEX_REASON_CODE_PROFILE_VERSION_INVALID,
  ONEX_REASON_CODE_CONNECTIVITY_CHANGE_NOTIFICATION,
  ONEX_REASON_CODE_EAP_CONFIGURATION_CHANGED,
  ONEX_REASON_CODE_PROFILE_CREATION,
  ONEX_REASON_CODE_LOW_POWER_STATE_CHANGE,
  ONEX_REASON_CODE_AC_POWER_STATE_CHANGE,
  ONEX_REASON_CODE_DOCKING_STATE_CHANGE,
  ONEX_REASON_CODE_USER_PROFILE_MIGRATED,
  ONEX_REASON_CODE_PROFILE_MIGRATION_FAILURE,
  ONEX_REASON_CODE_CONNECTIVITY_CHANGE_DEVICE_CAPABILITY_CHANGED,
  ONEX_REASON_CODE_AUTHENTICATION_PROCESS_CREATED,
  ONEX_REASON_CODE_AUTHENTICATION_PROCESS_COMPLETED,
  ONEX_REASON_CODE_USER_AUTHENTICATED,
  ONEX_REASON_CODE_FAST_ROAM_FAILURE_TIMEOUT,
  ONEX_REASON_CODE_ISSUED_NON_ROAMING_NON_MSM_PROFILE,
  ONEX_REASON_CODE_PREASSOCIATION_CONNECTIVITY_CHANGE,
  ONEX_REASON_CODE_POSTLOGON_CONNECTIVITY_CHANGE,
  ONEX_REASON_CODE_INVALID_PARAMETERS,
  ONEX_REASON_CODE_MIC_FAILURE,
  ONEX_REASON_CODE_DISABLE_DEAUTH_TO_ROAM,
  ONEX_REASON_CODE_DISABLE_DEAUTH_TO_PREASSOC,
  ONEX_REASON_CODE_AUTH_FAILURE_ACTION,
  ONEX_REASON_CODE_INVALID_PROFILE_SCHEMA,
  ONEX_REASON_CODE_INVALID_EAP_TYPE,
  ONEX_REASON_CODE_PREASSOCIATION_CONNECTIVITY_CHANGE_EX,
  ONEX_REASON_CODE_INTERFACE_SUPPORTS_FAST_ROAMING,
  ONEX_REASON_CODE_PROFILE_CREATION_FAILURE,
  ONEX_REASON_CODE_CONNECTIVITY_CHANGE_RANDOMIZATION_THRESHOLD,
  ONEX_REASON_CODE_DISCONNECT_PENDING,
  ONEX_REASON_CODE_DISCONNECT_SUPPLICANT_DISCONNECT,
  ONEX_REASON_CODE_DEVICE_LOCKED_OUT,
  ONEX_REASON_CODE_SUPPLICANT_PAUSED,
  ONEX_REASON_CODE_CAPABILITY_POLICY_INSTANCE_LIMIT,
  ONEX_REASON_CODE_EAP_UPPER_LAYER_FAILURE,
  ONEX_REASON_CODE_FAST_ROAM_FAILURE_TRIGGER,
  ONEX_REASON_CODE_PROFILE_VERSION_MISMATCH,
  ONEX_REASON_CODE_FAST_BSS_TRANSITION_FAILURE,
  ONEX_REASON_CODE_CONGESTION_CHANGE,
  ONEX_REASON_CODE_NO_RADIUS_RESPONSE,
  ONEX_REASON_CODE_RADIUS_REQUEST_COALESCED,
  ONEX_REASON_CODE_USER_ACCOUNT_TYPE_CHANGED,
  ONEX_REASON_CODE_DEVICE_CAPABILITY_CHANGED,
  ONEX_REASON_CODE_TRIGGERED_RESET_DUE_TO_PNP,
  ONEX_REASON_CODE_INTERNET_CONNECTIVITY_ESTABLISHED,
  ONEX_REASON_CODE_INTERNET_CONNECTIVITY_CHANGED,
  ONEX_REASON_CODE_WFD_SESSION_CLOSED,
  ONEX_REASON_CODE_WFD_DEVICE_RESTART,
  ONEX_REASON_CODE_DISABLE_DEAUTH_TO_IDLE,
  ONEX_REASON_CODE_DISABLE_DEAUTH_TO_HIBERNATE,
  ONEX_REASON_CODE_IHV_START,
  ONEX_REASON_CODE_IHV_END
} ONEX_REASON_CODE, *PONEX_REASON_CODE;

这个枚举列举了可能的 802.1X 认证原因代码,用于表示认证过程中发生的不同事件或错误的原因。这些代码可以用于诊断认证问题,了解失败或断开连接的具体原因。




转载请注明出处:http://www.zyzy.cn/article/detail/27247/Win32 API/Dot1x.h/ONEX_REASON_CODE