WiFi Framework
ContentsIndexHome
PreviousUpNext
Variables

The following table lists variables in this documentation.

Name 
Description 
The base Network List Manager error code.  
The Network List Manager is closed.  
Unable to initialize COM subsystem.  
Connections were not found.  
The Network List Manager events handler was not set.  
The Network List Manager events handler is already set.  
Unable to find the Network events handler connection point.  
Unable to find the Network events handler connection points container.  
The network with given ID was not found.  
Networks with required type were not found.  
The Network List Manager is opened.  
Unable to enumerate connections.  
Unable to enumerate available networks.  
Unable to find the Network List Manager events handler connection point.  
Unable to find the Network List Manager events handler connection points container.  
Unable to read Connected property of the Network List Manager or Network.  
Unable to get a connection's adapter ID.  
Unable to read a connection's ID.  
Unable to get a network's or machine's connectivity.  
Unable to get a network's domain type.  
Unable to get a network's categiry.  
Unable to get a network's creation and connection date and time.  
Unable to get a network's description.  
Unable to get a network's ID.  
Unable to get a network's name.  
Unable to set a network's categiry.  
Unable to set a network's description.  
Unable to set a network's name.  
The Network List Manager is not supported on this platform.  
The caller does not have sufficient permissions.  
The WLAN profile already exists. Typically, this return value is used when Overwrite is False, however, if Overwrite is True and Flags specifies a different profile type than the one used by the existing profile, then the existing profile will not be overwritten and WCL_E_WIFI_ALREADY_EXISTS will be returned.  
The configuration data for the wireless Hosted Network is unconfigured. This error is returned if the application queries the Hosted Network Profile or Hosted Network Connection Settings before a SSID is configured in the wireless Hosted Network.  
The profile is not valid.  
The base error code for the WiFi framework.  
Unable to change the WiFi Adapter state.  
A WiFi is already closed.  
Unable to create thread.  
This error is returned if no user custom data exists for the profile specified.  
A WiFi Direct Advertiser is already running.  
The base error code for WiFi Direct Advertiser.  
WiFi Direct Advertiser is not running.  
Unable to set Listen State Discoverability.  
The publisher is aborted due to error.  
Unable to change the Legacy mode setting of the WiFi Direct Advertiser.  
Unable to create start synchronization event for the WiFi Direct Advertiser.  
Unable to create WiFi Direct Advertiser working thread initialization event.  
Unable to start WiFi Direct Advertiser working thread.  
Unable to get the WiFi Direct Advertisement object.  
Unable to access Legacy mode security settings of the WiFi Direct Advertiser.  
Unable to access the WiFi Direct Advertiser Legacy mode settings.  
Unable to set an Autonomous Group Owner state.  
Unable to set event handler for WiFi Direct Advertiser connection listening.  
Unable to set the WiFi Direct Advertiser's Legacy mode pass phrase.  
Unable to set event handler for WiFi Direct Advertiser.  
Unable to set SSID for the WiFi Direct Advertiser.  
Filed to start WiFi Direct Advertiser.  
The base WiFi Direct error code.  
The base error code for WiFi Direct device errors.  
The WiFi Direct device is connected or connecting.  
Connection has been terminated by user.  
Unable to create WiFi Direct device object.  
Unable to get WiFi Direct device creation operation result.  
Unable to create device information object.  
WiFi Direct device object was not created.  
Unable to create pairing synchronization mutex.  
Unable to create WiFi Direct device pairing notification synchronization event.  
Unablet to create WiFi Direct device's thread termination event.  
WiFi Direct device does not support custom pairing.  
The WiFi Direct device is disconnected or disconnecting.  
No connection endpoints were found.  
Extended device information not supported.  
Unable to convert Host Name to IP address.  
Unable to get connection parameters.  
Unable to get custom pairing interface.  
Unable to get default (first) connection endpoint pair.  
Unable to get connection endpoints count.  
Unable to get connection endpoint pairs.  
Unable to get IHostName interface for the connection endpoint pair.  
Unable to get device information object.  
Unable to get WiFi Direct device's name.  
Unable to get pairing result.  
Unable to get pairing settings.  
Unable to pair with remote device.  
WiFi Direct device does not support pairing.  
IAsyncInfor interface not supported.  
Unable to set disconnection event handler.  
Unable to set Group Owner Intent.  
Unable to set pairing event handler.  
Unable to set preffered pairing procedure.  
Unable to start pairing with remote WiFi Direct device.  
Unable to start WiFi Direct device connection thread.  
Wait for notification message processing failed.  
The WiFi Direct Device Watcher is already running.  
The base error code for WiFi Direct Device Watcher.  
Unable to create Device Information Activation Factory.  
Unable to create WiFi Direct Device activation factory.  
IWiFiDirectDeviceStatics2 interface is not supported.  
Unable to create WiFi Direct Device Watcher thread synchronization event.  
Unable to create Device Watcher object.  
Unable to create discovering completed notification event.  
Unable to start WiFi Direct Device Watcher worker thread.  
Discovering terminated by user.  
Unable to get Device Selector.  
The WiFi Direct Device Watcher is not running.  
Unable to set device added event handler.  
Unable to set discovering completed event handler.  
Unable to start WiFi Direct Device Watcher.  
Unexpected or unknown error.  
WiFi Direct features are not supported. For WiFi Direct features Windows 10 is required.  
Your application does not have the appropriate permissions level to pair the device.  
The device has already been paired.  
The base error code for all WiFi Direct pairing errors.  
The pairing action was canceled before completion.  
Authentication failed, so the device is not paired. Either the device or the application rejected the authentication.  
Either the event handler wasn't registered or a required TwclWiFiDirectPairingKinds was not supported.  
The device indicated there was a hardware failure.  
The remove device already has an association.  
The device is already attempting to pair or unpair.  
The ceremony data was incorrect.  
There are no network profiles for this device to use.  
The authentication protocol is not supported, so the device is not paired.  
The device is not currently paired.  
The device is not in a state where it can be paired.  
The minimum level of protection is not supported by the device or the application.  
The device rejected the connection.  
The application handler rejected the pairing.  
The authentication process timed out before it could complete.  
The device indicated it cannot accept any more incoming connections.  
An unknown or unexpected failure occurred.  
The WiFi Direct radio was not available. This error occurs when the WiFi Direct radio has been turned off.  
The operation cannot be serviced because the necessary resources are currently in use.  
Unknown or unexpected WiFi Direct error.  
The feature is not supported on this platform.  
A calling function was not found in WLAN API.  
Unable to get asynchronous operation result.  
Unable to get found adapters count.  
Unable to get operation thread result code.  
The driver for the wireless Hosted Network failed to start.  
Bad parameters.  
The base code for the hosted network reasons.  
A state change occurred that was caused by client abort.  
A cryptographic error occurred.  
The wireless adapter used by the wireless Hosted Network changed.  
This operation requires elevation.  
The operation was denied by group policy.  
User impersonation failed.  
An incompatible connection started.
An incompatible connection refers to one of the following cases:
  • An ad hoc wireless connection is started on the primary station adapter.
  • Network monitoring is started on the primary station adapter by an application (Network Monitor, for example;.
  • A wireless connection is started in FIPS safe mode on the primary station adapter. FIPS safe mode is specified in the profile of the wireless connection.
Windows will stop the wireless Hosted Network on the software-based wireless access point (AP; adapter when an incompatible connection starts on the primary station adapter. The network state of the wireless Hosted... more 
An incompatible connection stopped.
An incompatible connection previously started on the primary station adapter (wclWiFi::WCL_E_WIFI_HN_RES_INCOMPATIBLE_CONNECTION_STARTED;, but the incompatible connection has stopped. If the wireless Hosted Network was previously stopped as a result of an incompatible connection being started, Windows will not automatically restart the wireless Hosted Network.
 
Service is out of resources.  
A wireless interface has become available.  
A wireless interface has become unavailable.
This reason code is returned by the wireless Hosted Network functions any time the network state of the wireless Hosted Network is hnUnavailable. For example if the wireless Hosted Network is disabled by group policy on a domain, then the network state of the wireless Hosted Network is hnUnavailable.
 
The wireless miniport driver status changed.  
The wireless miniport driver stopped the Hosted Network.  
A peer connected to the wireless Hosted Network.  
A peer disconnected from the wireless Hosted Network.  
A peer timed out.  
Data persistence failed.  
The properties of the wireless Hosted Network changed.  
An attempt was made to write read-only data.  
An identical service is available on a virtual station.  
Service is shutting down.  
The Wireless LAN service is not running.  
An incorrect function call sequence was made.  
Unknown error.  
A state change occurred that was caused by explicit user action.  
A virtual station is active and blocking operation.  
One or more arguments passed into the WLAN API are invalid.  
An invalid WLAN client handle used.  
The resource is not in the correct state to perform the requested operation. This error is returned if the wireless Hosted Network is disabled by group policy on a domain.  
The interface does not support one or more of the capabilities specified in the profile. For example, if a profile specifies the use of WPA2 when the NIC only supports WPA, then this error code is returned. Also, if a profile specifies the use of FIPS mode when the NIC does not support FIPS mode, then this error code is returned.  
A WiFi was not opened (is not active;.  
The WiFi hardware or driver was not found.  
WLAN API can not allocate memory to execute an requested operation.  
The wireless profile specified by was not found in the profile store.  
The required operation is not supported by the WiFi subsystem.  
The 802.1X authentication restart was caused by a new authentication attempt with alternate user credentials. EAP methods like MSCHAPv2 prefer to use logged-on user credentials for 802.1X authentication. If these user credentials do not work, then a dialog will be displayed to the user that asks permission to use alternate credentials for 802.1X authentication.  
The 802.1X authentication restart was the result of an state timeout. The timer expiring is the authWhile timer of the 802.1X supplicant port access entity defined in IEEE 802.1X - 2004 standard for Port-Based Network Access Control. The authWhile timer is used by the supplicant port access entity to determine how long to wait for a request from the authenticator before timing it out.  
The base code for the 802.1x authentication reasons.  
The 802.1X authentication restart was the result of a configuration change to the current profile.  
The 802.1X authentication restart was the result of a state timeout. The timer expiring is the heldWhile timer of the 802.1X supplicant state machine defined in IEEE 802.1X - 2004 standard for Port-Based Network Access Control. The heldWhile timer is used by the supplicant state machine to define periods of time during which it will not attempt to acquire an authenticator.  
Unknown reason.  
The Media Specific Module (MSM; initiated the 802.1X authentication restart.  
The EAPHost component (the peer; requested the 802.1x module to restart 802.1X authentication. This results from a EapHostPeerProcessReceivedPacket function call that returns an EapHostPeerResponseAction enumeration value of EapHostPeerResponseStartAuthentication in the pEapOutput parameter.  
The 802.1X authentication restart was the result of receiving a notification from the EAP quarantine enforcement client (QEC; due to a network health change. If an EAPHost supplicant is participating in network access protection (NAP;, the supplicant will respond to changes in the state of its network health. If that state changes, the supplicant must then initiate a re-authentication session.  
The 802.1X authentication restart was the result of a change of user. This could occur if the current user logs off and new user logs on to the local computer.  
A WiFi is already opened.  
The PHY with given index was not found.  
The radio associated with the interface is turned off. There are no available networks when the radio is off.  
Failed to start security for ad hoc peer.  
An application tried to apply a wireless Hosted Network profile to a physical wireless network adapter using the SetProfile method, rather than to a virtual device.  
An application tried to apply a wireless Hosted Network profile to a physical wireless network adapter using the WlanSetProfile function, rather than to a virtual device.  
An internal operating system error occurred that resulted in a failure to start the wireless Hosted Network.  
Driver disconnected while associating.  
Association timed out.  
An internal operating system error occurred with the wireless Hosted Network.  
An internal operating system error occurred with the wireless Hosted Network.  
Auto-switch cannot be set for an ad hoc network.  
Auto-switch cannot be set for a manual connection profile.  
An application tried to apply a wireless Hosted Network profile to a physical network adapter NIC using the SetProfile method, and specified an unacceptable value for the maximum number of clients allowed.  
The base code for the WiFi subsystem reasons.  
The basic service set (BSS; type is not allowed on this wireless adapter.  
The BSS type does not match.  
The security settings conflict.  
The Media Specific Module (MSM; connect call fails.  
The data rate does not match.  
Timed out waiting for the driver to disconnect.  
Driver disconnected.  
Driver failed to perform some operations.  
The wireless network is blocked by group policy.  
An application tried to apply an IHV profile on an adapter that does not support IHV connectivity settings.  
The IHV service is not available.  
The response from the IHV service timed out.  
The IHV profile OUI did not match with the adapter OUI.  
The IHV OUI settings are missing.  
The independent hardware vendor (IHV; security settings are missing.  
The IHV 802.1X security settings are missing.  
The IHV security settings are missing.  
The wireless network is in the blocked list.  
The wireless network is in the failed list.  
An internal error prevented the operation from being completed.  
Automatic connection cannot be set for an ad hoc network.  
The BSS type is not valid.  
The channel specified is invalid.  
The PHY type is invalid.  
The name of the profile is invalid.  
The profile invalid according to the schema.  
The type of the profile is invalid.  
The profile key does not match the network key.  
The MSM security settings are missing.  
802.1X authentication did not start within configured time.  
802.1X authentication did not complete within configured time.  
A MSM authentication WCN completed.  
Operation was canceled by a caller.  
Network does not support specified capability type.  
The wireless LAN requires Management Frame Protection (MFP; and the network interface does not suppport MFP. For more informarion, see the IEEE 802.11w amendment to the 802.11 standard.  
Capability matching failed at network.  
Capability matching failed at NIC.  
Capability matching failed at profile.  
Capability matching failed because the network does not support the authentication method in the profile.  
Capability matching failed because the network does not support the cipher algorithm in the profile.  
Profile requires FIPS 140-2 mode, which is not supported by network interface card (NIC;.  
Profile requires FIPS 140-2 mode, which is not supported by network.  
A security downgrade was detected.  
There was a forced failure because the connection method was not secure.  
Message 1 of group key handshake has no group key.  
Message 1 of group key handshake has no key data.  
Message 1 of group key handshake has no group management key.  
Entered key format is not in a valid format.  
Dynamic key exchange did not start within configured time.  
Dynamic key exchange did not complete within configured time.  
Message 2 of 4 way handshake has no IE (RSN Adhoc;.  
Message 2 of 4 way handshake has no key data (RSN Adhoc;.  
Message 3 of 4-way handshake has no GRP key.  
Message 3 of 4-way handshake has no IE.  
Message 3 of 4-way handshake has no key data.  
Message 3 of 4 way handshake has no Mgmt Group Key (RSN;.  
Message 3 of 4 way handshake contains too many RSN IE (RSN;.  
A mixed cell is suspected. The AP is not signaling that it is compatible with a privacy-enabled profile.  
Plumbing settings to NIC failed.  
802.1X indicated that there is no authenticator, but the profile requires one.  
Required a pairwise key but access point (AP; configured only group keys.  
AP reset secure bit after connection was secured.  
Matching security capabilities of IE in M3 failed.  
The number of authentication timers or the number of timeouts specified in the profile is invalid.  
Profile contains duplicate auth/cipher pair.  
Invalid auth/cipher combination.  
The group key update interval specified in the profile is invalid.  
Key index specified is not valid.  
Invalid PMK cache mode.  
Invalid PMK cache size.  
Invalid PMK cache TTL.  
Invalid preauth mode.  
Invalid preauth throttle.  
Invalid key length.  
The key contains characters that are not in the ASCII character set.  
Key material contains invalid character.  
No auth/cipher pairs specified.  
802.1X disabled when it is required to be enabled.  
802.1X enabled when it is required to be disabled.  
Passphrase contains invalid character.  
Preauth enabled when PMK cache is disabled.  
Invalid PSK length.  
Key required, PSK present.  
Profile raw data is invalid.  
FIPS 140-2 mode value in the profile is invalid.  
Too many auth/cipher pairs specified.  
Profile specifies an unsupported authentication, mechanism.  
Profile specifies an unsupported cipher.  
The key type specified does not match the key material.  
A PSK mismatch is suspected.  
Matching security capabilities of secondary IE in M3 failed.  
A "transition network" is suspected. Legacy 802.11 security is used for the next authentication attempt.  
Failed to queue the user interface request.  
The specified network is not available.
This reason code is also used when there is a mismatch between capabilities specified in an XML profile and interface and/or network capabilities. For example, if a profile specifies the use of WPA2 when the NIC only supports WPA, then this error code is returned. Also, if a profile specifies the use of FIPS mode when the NIC does not support FIPS mode, then this error code is returned.
 
The wireless network is not compatible.  
The profile specifies no auto connection.  
Non-broadcast cannot be set for an ad hoc network.  
The wireless network is not visible.  
The 802.1X authenticator went away from the network.  
The EAP authentication failed.  
The 802.1X identity could not be found.  
The EAP type specified in the OneX profile(possibly supplied by the EAPType element; is not allowed.  
The saved user credentials have expired. This value can be returned if a profile was saved with credentials and the credentials subsequently expired (password expirarion after some period of time, for example).  
The authentication mode specified in the OneX profile (possibly supplied by the authMode element; is invalid.  
The connection properties specified in the OneX profile (possibly supplied by the EAPConfig element; are invalid.  
The EAP Type specified in the OneX profile (possibly supplied by the EAPType element; is invalid, or one of the EAP flags (possibly supplied in the EAPConfig element; is invalid.  
The saved user credentials are not valid. This value can be returned if a profile was saved with bad credentials (an incorrect password, for example), since the credentials are not tested until the profile is actually used to establish a connection.  
The OneX profile has an invalid length.  
The supplicant flags (possibly supplied in the EAPConfig element; in the OneX profile are invalid.  
The supplicant mode specified in the OneX profile (possibly supplied by the supplicantMode element; is invalid.  
A timer specified in the OneX profile (possibly supplied by the heldPeriod, authPeriod, or startPeriod element; is invalid.  
The version of the OneX profile supplied is not supported.  
User input was canceled. This value can be returned if an EAP method requested user input, but the user hit the Cancel button or dismissed the user input dialog.  
Authentication could only be completed through the user interface and this interface could not be displayed.  
User interface is not permitted. On Windows 7 and on Windows Server 2008 R2 with the Wireless LAN Service installed, this value can be returned if an EAP method requested user input and the profile is configured with user credentials saved by another user and not the currently logged in user.  
No user is available for 802.1X authentication. This error can occur when machine authentication is disabled and no user is logged on to the machine.  
The operation mode is not supported.  
The PHY type does not match.  
Pre-association security failure.  
The profile was changed or deleted before the connection was established.  
The WLANProfile element is missing.  
The wireless network profile is not compatible.  
The SSID in the profile is invalid or missing.  
Driver disconnected while roaming.  
Failed to start security for roaming.  
The MSM scan call fails.  
Security ends up with failure.  
The security settings are missing.  
Security operation times out.  
The size of the service set identifiers (SSID; list exceeds the maximum size supported by the adapter.  
Failed to start security after association.  
Roaming too often. Post security was not completed after 5 attempts.  
Too many SSIDs were specified in the profile.  
A user interaction request timed out.  
The undefined reason code.  
The reason for failure is unknown.  
The security settings are not supported.  
The security settings are not supported by the operating system.  
User has canceled the operation.  
The wireless network is blocked by the user.  
The user is not responding.  
Internal WLAN driver error.  
No one supported adapter was found.  
The object that you are trying to create already exists.  
The version of the DLL does not match the version with which this executable was compiled.  
The base error code for the WiFi Sniffer.  
Indicates an issue between the application and the API.  
The WiFi Sniffer is closed.  
Frame comment information was not found.  
The specified file was not found.  
The file size of the capture specified by the capture function exceeds the current limit, 500 MB.  
The file size of the capture specified by the capture function is too small to contain any useful frame information.  
The frame size overlaps with the next frame.  
The offset in the frame table points past the bounds of the file.  
The file that you are saving to does not have enough space to hold the frame. This can occur when there is not enough disk space or if the file is over the 500 MB size limit.  
The other instance of the WiFi Sniffer is already using the same interface for capturing.  
The file type is not a valid Network Monitor 3 capture file.  
The API or driver is in the wrong state for the requested operation.  
Indicates an issue between the Network Monitor API and the ndisnapp object. See Working with Multi-Threaded Code.  
Reference to a file, file path, handle, or data field is incorrect.  
This function is not currently supported.  
The WiFi Sniffer has already been opened.  
The upper limit of a resource has been reached. This may indicate that a handle limit has been reached. Sometimes this is an indication that handles are being leaked. These resources can be read with the NmGetApiConfiguration function and set with the NmApiInitialize function.  
The field is a container, so the content is not available.  
Unable to create interface protection mutex.  
Unable to create API synchronization mutex.  
Unable to load NetMon API DLL.  
Unexpected WiFI Sniffer error.  
The file type is not supported.  
The PCAP data link type is not supported.  
The data is big-endian, but only little-endian data is supported.  
The file is not a supported PCAP version.  
The API references counter is in wrong state.  
Unable to start asynchronous operation.  
Too many sessions to WLAN subsystem are opened.  
An unexpected exception was raised during WLAN API call.  
Unable to get asynchronous operation information interface.  
The base error code for the WLAN subsystem.  
The WiFi subsystem was not loaded.  
The WiFi subsystem can not create synchronization mutex object.  
Unable to load the WiFi subsystem.  
Copyright (c) 2006-2019. All rights reserved.