wlanapi topic
Wireless LAN API
The Native Wifi application programming interface (API) functions have two purposes: to manage wireless network profiles and to manage wireless network connections. The API elements are exposed by the Auto Configuration Module (ACM). The exposed connection and disconnection API elements can be used to override the automatic configuration logic.
Functions
-
WlanAllocateMemory(
int dwMemorySize) → Pointer< wlanapiNativeType> - The WlanAllocateMemory function allocates memory. Any memory passed to other Native Wifi functions must be allocated with this function.
-
WlanCloseHandle(
int hClientHandle, Pointer< wlanapiNativeType> pReserved) → int - The WlanCloseHandle function closes a connection to the server.
-
WlanConnect(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, Pointer<WLAN_CONNECTION_PARAMETERS> pConnectionParameters, Pointer<NativeType> pReserved) → int - The WlanConnect function attempts to connect to a specific network.
-
WlanDeleteProfile(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, Pointer<Utf16> strProfileName, Pointer<NativeType> pReserved) → int - The WlanDeleteProfile function deletes a wireless profile for a wireless interface on the local computer.
-
WlanDeviceServiceCommand(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, Pointer<GUID> pDeviceServiceGuid, int dwOpCode, int dwInBufferSize, Pointer<NativeType> pInBuffer, int dwOutBufferSize, Pointer<NativeType> pOutBuffer, Pointer<Uint32> pdwBytesReturned) → int - Allows an original equipment manufacturer (OEM) or independent hardware vendor (IHV) component to communicate with a device service on a particular wireless LAN interface.
-
WlanDisconnect(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, Pointer<NativeType> pReserved) → int - The WlanDisconnect function disconnects an interface from its current network.
-
WlanEnumInterfaces(
int hClientHandle, Pointer< wlanapiNativeType> pReserved, Pointer<Pointer< ppInterfaceList) → intWLAN_INTERFACE_INFO_LIST> > - The WlanEnumInterfaces function enumerates all of the wireless LAN interfaces currently enabled on the local computer.
-
WlanExtractPsdIEDataList(
int hClientHandle, int dwIeDataSize, Pointer< wlanapiUint8> pRawIeData, Pointer<Utf16> strFormat, Pointer<NativeType> pReserved, Pointer<Pointer< ppPsdIEDataList) → intWLAN_RAW_DATA_LIST> > - The WlanExtractPsdIEDataList function extracts the proximity service discovery (PSD) information element (IE) data list from raw IE data included in a beacon.
-
WlanFreeMemory(
Pointer< wlanapiNativeType> pMemory) → void - The WlanFreeMemory function frees memory. Any memory returned from Native Wifi functions must be freed.
-
WlanGetAvailableNetworkList(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, int dwFlags, Pointer<NativeType> pReserved, Pointer<Pointer< ppAvailableNetworkList) → intWLAN_AVAILABLE_NETWORK_LIST> > - The WlanGetAvailableNetworkList function retrieves the list of available networks on a wireless LAN interface.
-
WlanGetFilterList(
int hClientHandle, int wlanFilterListType, Pointer< wlanapiNativeType> pReserved, Pointer<Pointer< ppNetworkList) → intDOT11_NETWORK_LIST> > - The WlanGetFilterList function retrieves a group policy or user permission list.
-
WlanGetInterfaceCapability(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, Pointer<NativeType> pReserved, Pointer<Pointer< ppCapability) → intWLAN_INTERFACE_CAPABILITY> > - The WlanGetInterfaceCapability function retrieves the capabilities of an interface.
-
WlanGetNetworkBssList(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, Pointer<DOT11_SSID> pDot11Ssid, int dot11BssType, int bSecurityEnabled, Pointer<NativeType> pReserved, Pointer<Pointer< ppWlanBssList) → intWLAN_BSS_LIST> > - The WlanGetNetworkBssList function retrieves a list of the basic service set (BSS) entries of the wireless network or networks on a given wireless LAN interface.
-
WlanGetProfile(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, Pointer<Utf16> strProfileName, Pointer<NativeType> pReserved, Pointer<Pointer< pstrProfileXml, Pointer<Utf16> >Uint32> pdwFlags, Pointer<Uint32> pdwGrantedAccess) → int - The WlanGetProfile function retrieves all information about a specified wireless profile.
-
WlanGetProfileCustomUserData(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, Pointer<Utf16> strProfileName, Pointer<NativeType> pReserved, Pointer<Uint32> pdwDataSize, Pointer<Pointer< ppData) → intUint8> > - The WlanGetProfileCustomUserData function gets the custom user data associated with a wireless profile.
-
WlanGetProfileList(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, Pointer<NativeType> pReserved, Pointer<Pointer< ppProfileList) → intWLAN_PROFILE_INFO_LIST> > - The WlanGetProfileList function retrieves the list of profiles in preference order.
-
WlanGetSecuritySettings(
int hClientHandle, int SecurableObject, Pointer< wlanapiInt32> pValueType, Pointer<Pointer< pstrCurrentSDDL, Pointer<Utf16> >Uint32> pdwGrantedAccess) → int - The WlanGetSecuritySettings function gets the security settings associated with a configurable object.
-
WlanGetSupportedDeviceServices(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, Pointer<Pointer< ppDevSvcGuidList) → intWLAN_DEVICE_SERVICE_GUID_LIST> > - Retrieves a list of the supported device services on a given wireless LAN interface.
-
WlanHostedNetworkForceStart(
int hClientHandle, Pointer< wlanapiInt32> pFailReason, Pointer<NativeType> pvReserved) → int - The WlanHostedNetworkForceStart function transitions the wireless Hosted Network to the wlan_hosted_network_active state without associating the request with the application's calling handle.
-
WlanHostedNetworkForceStop(
int hClientHandle, Pointer< wlanapiInt32> pFailReason, Pointer<NativeType> pvReserved) → int - The WlanHostedNetworkForceStop function transitions the wireless Hosted Network to the wlan_hosted_network_idle without associating the request with the application's calling handle.
-
WlanHostedNetworkInitSettings(
int hClientHandle, Pointer< wlanapiInt32> pFailReason, Pointer<NativeType> pvReserved) → int - The WlanHostedNetworkInitSettings function configures and persists to storage the network connection settings (SSID and maximum number of peers, for example) on the wireless Hosted Network if these settings are not already configured.
-
WlanHostedNetworkQueryProperty(
int hClientHandle, int OpCode, Pointer< wlanapiUint32> pdwDataSize, Pointer<Pointer< ppvData, Pointer<NativeType> >Int32> pWlanOpcodeValueType, Pointer<NativeType> pvReserved) → int - The WlanHostedNetworkQueryProperty function queries the current static properties of the wireless Hosted Network.
-
WlanHostedNetworkQuerySecondaryKey(
int hClientHandle, Pointer< wlanapiUint32> pdwKeyLength, Pointer<Pointer< ppucKeyData, Pointer<Uint8> >Int32> pbIsPassPhrase, Pointer<Int32> pbPersistent, Pointer<Int32> pFailReason, Pointer<NativeType> pvReserved) → int - The WlanHostedNetworkQuerySecondaryKey function queries the secondary security key that is configured to be used by the wireless Hosted Network.
-
WlanHostedNetworkQueryStatus(
int hClientHandle, Pointer< wlanapiPointer< ppWlanHostedNetworkStatus, Pointer<WLAN_HOSTED_NETWORK_STATUS> >NativeType> pvReserved) → int - The WlanHostedNetworkQueryStatus function queries the current status of the wireless Hosted Network.
-
WlanHostedNetworkRefreshSecuritySettings(
int hClientHandle, Pointer< wlanapiInt32> pFailReason, Pointer<NativeType> pvReserved) → int - The WlanHostedNetworkRefreshSecuritySettings function refreshes the configurable and auto-generated parts of the wireless Hosted Network security settings.
-
WlanHostedNetworkSetProperty(
int hClientHandle, int OpCode, int dwDataSize, Pointer< wlanapiNativeType> pvData, Pointer<Int32> pFailReason, Pointer<NativeType> pvReserved) → int - The WlanHostedNetworkSetProperty function sets static properties of the wireless Hosted Network.
-
WlanHostedNetworkSetSecondaryKey(
int hClientHandle, int dwKeyLength, Pointer< wlanapiUint8> pucKeyData, int bIsPassPhrase, int bPersistent, Pointer<Int32> pFailReason, Pointer<NativeType> pvReserved) → int - The WlanHostedNetworkSetSecondaryKey function configures the secondary security key that will be used by the wireless Hosted Network.
-
WlanHostedNetworkStartUsing(
int hClientHandle, Pointer< wlanapiInt32> pFailReason, Pointer<NativeType> pvReserved) → int - The WlanHostedNetworkStartUsing function starts the wireless Hosted Network.
-
WlanHostedNetworkStopUsing(
int hClientHandle, Pointer< wlanapiInt32> pFailReason, Pointer<NativeType> pvReserved) → int - The WlanHostedNetworkStopUsing function stops the wireless Hosted Network.
-
WlanIhvControl(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, int Type, int dwInBufferSize, Pointer<NativeType> pInBuffer, int dwOutBufferSize, Pointer<NativeType> pOutBuffer, Pointer<Uint32> pdwBytesReturned) → int - The WlanIhvControl function provides a mechanism for independent hardware vendor (IHV) control of WLAN drivers or services.
-
WlanOpenHandle(
int dwClientVersion, Pointer< wlanapiNativeType> pReserved, Pointer<Uint32> pdwNegotiatedVersion, Pointer<IntPtr> phClientHandle) → int - The WlanOpenHandle function opens a connection to the server.
-
WlanQueryAutoConfigParameter(
int hClientHandle, int OpCode, Pointer< wlanapiNativeType> pReserved, Pointer<Uint32> pdwDataSize, Pointer<Pointer< ppData, Pointer<NativeType> >Int32> pWlanOpcodeValueType) → int - The WlanQueryAutoConfigParameter function queries for the parameters of the auto configuration service.
-
WlanQueryInterface(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, int OpCode, Pointer<NativeType> pReserved, Pointer<Uint32> pdwDataSize, Pointer<Pointer< ppData, Pointer<NativeType> >Int32> pWlanOpcodeValueType) → int - The WlanQueryInterface function queries various parameters of a specified interface.
-
WlanReasonCodeToString(
int dwReasonCode, int dwBufferSize, Pointer< wlanapiUtf16> pStringBuffer, Pointer<NativeType> pReserved) → int - The WlanReasonCodeToString function retrieves a string that describes a specified reason code.
-
WlanRegisterDeviceServiceNotification(
int hClientHandle, Pointer< wlanapiWLAN_DEVICE_SERVICE_GUID_LIST> pDevSvcGuidList) → int - Allows user mode clients with admin privileges, or User-Mode Driver Framework (UMDF) drivers, to register for unsolicited notifications corresponding to device services that they're interested in.
-
WlanRegisterNotification(
int hClientHandle, int dwNotifSource, int bIgnoreDuplicate, Pointer< wlanapiNativeFunction< funcCallback, Pointer<WLAN_NOTIFICATION_CALLBACK> >NativeType> pCallbackContext, Pointer<NativeType> pReserved, Pointer<Uint32> pdwPrevNotifSource) → int - The WlanRegisterNotification function is used to register and unregister notifications on all wireless interfaces.
-
WlanRegisterVirtualStationNotification(
int hClientHandle, int bRegister, Pointer< wlanapiNativeType> pReserved) → int - The WlanRegisterVirtualStationNotification function is used to register and unregister notifications on a virtual station.
-
WlanRenameProfile(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, Pointer<Utf16> strOldProfileName, Pointer<Utf16> strNewProfileName, Pointer<NativeType> pReserved) → int - The WlanRenameProfile function renames the specified profile.
-
WlanSaveTemporaryProfile(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, Pointer<Utf16> strProfileName, Pointer<Utf16> strAllUserProfileSecurity, int dwFlags, int bOverWrite, Pointer<NativeType> pReserved) → int - The WlanSaveTemporaryProfile function saves a temporary profile to the profile store.
-
WlanScan(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, Pointer<DOT11_SSID> pDot11Ssid, Pointer<WLAN_RAW_DATA> pIeData, Pointer<NativeType> pReserved) → int - The WlanScan function requests a scan for available networks on the indicated interface.
-
WlanSetAutoConfigParameter(
int hClientHandle, int OpCode, int dwDataSize, Pointer< wlanapiNativeType> pData, Pointer<NativeType> pReserved) → int - The WlanSetAutoConfigParameter function sets parameters for the automatic configuration service.
-
WlanSetFilterList(
int hClientHandle, int wlanFilterListType, Pointer< wlanapiDOT11_NETWORK_LIST> pNetworkList, Pointer<NativeType> pReserved) → int - The WlanSetFilterList function sets the permit/deny list.
-
WlanSetInterface(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, int OpCode, int dwDataSize, Pointer<NativeType> pData, Pointer<NativeType> pReserved) → int - The WlanSetInterface function sets user-configurable parameters for a specified interface.
-
WlanSetProfile(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, int dwFlags, Pointer<Utf16> strProfileXml, Pointer<Utf16> strAllUserProfileSecurity, int bOverwrite, Pointer<NativeType> pReserved, Pointer<Uint32> pdwReasonCode) → int - The WlanSetProfile function sets the content of a specific profile.
-
WlanSetProfileCustomUserData(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, Pointer<Utf16> strProfileName, int dwDataSize, Pointer<Uint8> pData, Pointer<NativeType> pReserved) → int - The WlanSetProfileCustomUserData function sets the custom user data associated with a profile.
-
WlanSetProfileEapUserData(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, Pointer<Utf16> strProfileName, EAP_METHOD_TYPE eapType, int dwFlags, int dwEapUserDataSize, Pointer<Uint8> pbEapUserData, Pointer<NativeType> pReserved) → int - The WlanSetProfileEapUserData function sets the Extensible Authentication Protocol (EAP) user credentials as specified by raw EAP data. The user credentials apply to a profile on an interface.
-
WlanSetProfileEapXmlUserData(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, Pointer<Utf16> strProfileName, int dwFlags, Pointer<Utf16> strEapXmlUserData, Pointer<NativeType> pReserved) → int - The WlanSetProfileEapXmlUserData function sets the Extensible Authentication Protocol (EAP) user credentials as specified by an XML string. The user credentials apply to a profile on an adapter. These credentials can be used only by the caller.
-
WlanSetProfileList(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, int dwItems, Pointer<Pointer< strProfileNames, Pointer<Utf16> >NativeType> pReserved) → int - The WlanSetProfileList function sets the preference order of profiles for a given interface.
-
WlanSetProfilePosition(
int hClientHandle, Pointer< wlanapiGUID> pInterfaceGuid, Pointer<Utf16> strProfileName, int dwPosition, Pointer<NativeType> pReserved) → int - The WlanSetProfilePosition function sets the position of a single, specified profile in the preference list.
-
WlanSetPsdIEDataList(
int hClientHandle, Pointer< wlanapiUtf16> strFormat, Pointer<WLAN_RAW_DATA_LIST> pPsdIEDataList, Pointer<NativeType> pReserved) → int - The WlanSetPsdIeDataList function sets the proximity service discovery (PSD) information element (IE) data list.
-
WlanSetSecuritySettings(
int hClientHandle, int SecurableObject, Pointer< wlanapiUtf16> strModifiedSDDL) → int - The WlanGetProfileList function sets the security settings for a configurable object.