crt: Add new APIs in wlanapi library

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
diff --git a/mingw-w64-crt/lib-common/wlanapi.def b/mingw-w64-crt/lib-common/wlanapi.def
index 2cc2785..b023795 100644
--- a/mingw-w64-crt/lib-common/wlanapi.def
+++ b/mingw-w64-crt/lib-common/wlanapi.def
@@ -5,9 +5,9 @@
 ;
 LIBRARY "wlanapi.dll"
 EXPORTS
-WFDGetSessionEndpointPairsInt
 QueryNetconStatus
 QueryNetconVirtualCharacteristic
+WFDAbortSessionInt
 WFDAcceptConnectRequestAndOpenSessionInt
 WFDAcceptGroupRequestAndOpenSessionInt
 WFDCancelConnectorPairWithOOB
@@ -21,54 +21,103 @@
 WFDCloseSession
 WFDCloseSessionInt
 WFDConfigureFirewallForSessionInt
+WFDCreateDHPrivatePublicKeyPairInt
 WFDDeclineConnectRequestInt
 WFDDeclineGroupRequestInt
+WFDDiscoverDeviceServiceInformationInt
+WFDDiscoverDevicesExInt
 WFDDiscoverDevicesInt
 WFDFlushVisibleDeviceListInt
 WFDForceDisconnectInt
 WFDForceDisconnectLegacyPeerInt
 WFDFreeMemoryInt
 WFDGetDefaultGroupProfileInt
+WFDGetDeviceDescriptorForPendingRequestInt
+WFDGetNFCCarrierConfigBlobInt
 WFDGetOOBBlob
+WFDGetPrimaryAdapterStateInt
 WFDGetProfileKeyInfoInt
+WFDGetSessionEndpointPairsInt
+WFDGetVisibleDevicesExInt
 WFDGetVisibleDevicesInt
 WFDIsInterfaceWiFiDirect
 WFDIsWiFiDirectRunningOnWiFiAdapter
 WFDLowPrivCancelOpenSessionInt
 WFDLowPrivCloseHandleInt
+WFDLowPrivCloseLegacySessionInt
 WFDLowPrivCloseSessionInt
 WFDLowPrivConfigureFirewallForSessionInt
+WFDLowPrivDeclineDeviceApiConnectionRequestInt
+WFDLowPrivGetPendingGroupRequestDetailsInt
 WFDLowPrivGetSessionEndpointPairsInt
 WFDLowPrivIsWfdSupportedInt
 WFDLowPrivOpenHandleInt
+WFDLowPrivOpenLegacySessionInt
+WFDLowPrivOpenSessionByDafObjectIdInt
+WFDLowPrivQueryPropertyInt
 WFDLowPrivRegisterNotificationInt
 WFDLowPrivStartOpenSessionByInterfaceIdInt
+WFDLowPrivRegisterVMgrCallerInt
+WFDLowPrivSetPropertyInt
+WFDLowPrivStartDeviceApiConnectionRequestListenerInt
+WFDLowPrivStartUsingGroupInt
+WFDLowPrivStopDeviceApiConnectionRequestListenerInt
+WFDLowPrivStopUsingGroupInt
+WFDLowPrivUnregisterVMgrCallerInt
 WFDOpenHandle
 WFDOpenHandleInt
 WFDOpenLegacySession
 WFDOpenLegacySessionInt
 WFDPairCancelByDeviceAddressInt
 WFDPairCancelInt
+WFDPairContinuePairWithDeviceInt
 WFDPairEnumerateCeremoniesInt
 WFDPairSelectCeremonyInt
 WFDPairWithDeviceAndOpenSessionExInt
 WFDPairWithDeviceAndOpenSessionInt
 WFDParseOOBBlob
+WFDParseOOBBlobTypeAndGetPayloadInt
 WFDParseProfileXmlInt
+WFDParseWfaNfcCarrierConfigBlobInt
 WFDQueryPropertyInt
 WFDRegisterNotificationInt
+WFDRegisterVMgrCallerInt
+WFDResetSelectedWfdMgrInt
 WFDSetAdditionalIEsInt
 WFDSetPropertyInt
 WFDSetSecondaryDeviceTypeListInt
+WFDSetSelectedWfdMgrInt
+WFDStartBackgroundDiscoveryInt
 WFDStartConnectorPairWithOOB
 WFDStartListenerPairWithOOB
+WFDStartOffloadedDiscoveryInt
 WFDStartOpenSession
 WFDStartOpenSessionInt
+WFDStartUsingGroupExInt
 WFDStartUsingGroupInt
+WFDStopBackgroundDiscoveryInt
+WFDStopDiscoverDevicesExInt
 WFDStopDiscoverDevicesInt
+WFDStopOffloadedDiscoveryInt
 WFDStopUsingGroupInt
+WFDSvcLowPrivAcceptSessionInt
+WFDSvcLowPrivCancelSessionInt
+WFDSvcLowPrivCloseSessionInt
+WFDSvcLowPrivConfigureSessionInt
+WFDSvcLowPrivConnectSessionInt
+WFDSvcLowPrivGetProvisioningInfoInt
+WFDSvcLowPrivGetSessionEndpointPairsInt
+WFDSvcLowPrivOpenAdvertiserSessionInt
+WFDSvcLowPrivOpenSeekerSessionInt
+WFDSvcLowPrivPublishServiceInt
+WFDSvcLowPrivUnpublishServiceInt
+WFDUnregisterVMgrCallerInt
 WFDUpdateDeviceVisibility
+WiFiDisplayResetSinkStateInt
+WiFiDisplaySetSinkClientHandleInt
+WiFiDisplaySetSinkStateInt
 WlanAllocateMemory
+WlanAllocateProfileIpConfiguration
 WlanCancelPlap
 WlanCloseHandle
 WlanConnect
@@ -76,6 +125,7 @@
 WlanConnectWithInput
 WlanDeinitPlapParams
 WlanDeleteProfile
+WlanDeviceServiceCommand
 WlanDisconnect
 WlanDoPlap
 WlanDoesBssMatchSecurity
@@ -85,6 +135,7 @@
 WlanFreeMemory
 WlanGenerateProfileXmlBasicSettings
 WlanGetAvailableNetworkList
+WlanGetAvailableNetworkList2
 WlanGetFilterList
 WlanGetInterfaceCapability
 WlanGetMFPNegotiated
@@ -96,10 +147,12 @@
 WlanGetProfileKeyInfo
 WlanGetProfileList
 WlanGetProfileMetadata
+WlanGetProfileMetadataWithProfileGuid
 WlanGetProfileSsidList
 WlanGetRadioInformation
 WlanGetSecuritySettings
 WlanGetStoredRadioState
+WlanGetSupportedDeviceServices
 WlanHostedNetworkForceStart
 WlanHostedNetworkForceStop
 WlanHostedNetworkFreeWCNSettings
@@ -117,6 +170,11 @@
 WlanHostedNetworkStopUsing
 WlanIhvControl
 WlanInitPlapParams
+WlanInternalCancelFTMRequest
+WlanInternalGetNetworkBssListWithFTMData
+WlanInternalNonDisruptiveScan
+WlanInternalNonDisruptiveScanEx
+WlanInternalRequestFTM
 WlanInternalScan
 WlanIsActiveConsoleUser
 WlanIsNetworkSuppressed
@@ -124,13 +182,31 @@
 WlanLowPrivCloseHandle
 WlanLowPrivEnumInterfaces
 WlanLowPrivFreeMemory
+WlanLowPrivNotifyVsIeProviderInt
 WlanLowPrivOpenHandle
 WlanLowPrivQueryInterface
 WlanLowPrivSetInterface
+WlanNotifyVsIeProviderExInt
 WlanNotifyVsIeProviderInt
 WlanOpenHandle
 WlanParseProfileXmlBasicSettings
+WlanPrivateCanDeleteProfile
+WlanPrivateClearAnqpCache
+WlanPrivateDeleteProfile
+WlanPrivateEnableAnqpOsuRegistration
+WlanPrivateGetAnqpCacheResponse
+WlanPrivateGetAnqpOSUProviderList
+WlanPrivateGetAnqpOsuRegistrationStatus
 WlanPrivateGetAvailableNetworkList
+WlanPrivateParseAnqpRawData
+WlanPrivateQuery11adPairedConfig
+WlanPrivateQueryInterface
+WlanPrivateRefreshAnqpCache
+WlanPrivateSetInterface
+WlanPrivateSetProfile
+WlanProfileIpConfigurationGetAddressList
+WlanProfileIpConfigurationGetDnsServerList
+WlanProfileIpConfigurationGetGatewayList
 WlanQueryAutoConfigParameter
 WlanQueryCreateAllUserProfileRestricted
 WlanQueryInterface
@@ -139,6 +215,7 @@
 WlanQueryVirtualInterfaceType
 WlanReasonCodeToString
 WlanRefreshConnections
+WlanRegisterDeviceServiceNotification
 WlanRegisterNotification
 WlanRegisterVirtualStationNotification
 WlanRemoveUIForwardingNetworkList
@@ -155,23 +232,34 @@
 WlanSetProfileEapUserData
 WlanSetProfileEapXmlUserData
 WlanSetProfileList
+WlanSetProfileListForOffload
 WlanSetProfileMetadata
 WlanSetProfilePosition
+WlanSetProtectedScenario
 WlanSetPsdIEDataList
 WlanSetSecuritySettings
 WlanSetUIForwardingNetworkList
 WlanSignalValueToBar
+WlanSignalValueToBarEx
 WlanSsidToDisplayName
 WlanStartAP
+WlanStartMovementDetector
 WlanStopAP
+WlanStopMovementDetector
 WlanStoreRadioStateOnEnteringAirPlaneMode
 WlanStringToSsid
+WlanStringToUtf8Ssid
 WlanTryUpgradeCurrentConnectionAuthCipher
+WlanUpdateBasicProfileSecurity
 WlanUpdateProfileWithAuthCipher
 WlanUtf8SsidToDisplayName
+WlanVMgrQueryCurrentScenariosInt
+WlanVerifyProfileIpConfiguration
+WlanWcmDisconnect
 WlanWcmGetInterface
 WlanWcmGetProfileList
 WlanWcmSetInterface
+WlanWcmSetProfile
 WlanWfdGOSetWCNSettings
 WlanWfdGetPeerInfo
 WlanWfdStartGO
diff --git a/mingw-w64-crt/lib32/wlanapi.def b/mingw-w64-crt/lib32/wlanapi.def
index 59cf01b..d95329d 100644
--- a/mingw-w64-crt/lib32/wlanapi.def
+++ b/mingw-w64-crt/lib32/wlanapi.def
@@ -1,35 +1,228 @@
 ;
-; Definition file of Wlanapi.dll
+; Definition file of wlanapi.dll
 ; Automatic generated by gendef
 ; written by Kai Tietz 2008
 ;
-LIBRARY "Wlanapi.dll"
+LIBRARY "wlanapi.dll"
 EXPORTS
+QueryNetconStatus@8
+QueryNetconVirtualCharacteristic@8
+WFDAbortSessionInt@4
+WFDAcceptConnectRequestAndOpenSessionInt@24
+WFDAcceptGroupRequestAndOpenSessionInt@44
+WFDCancelConnectorPairWithOOB@4
+WFDCancelListenerPairWithOOB@4
+WFDCancelOpenSession@4
+WFDCancelOpenSessionInt@4
+WFDCloseHandle@4
+WFDCloseHandleInt@4
+WFDCloseLegacySessionInt@12
+WFDCloseOOBPairingSession@4
+WFDCloseSession@4
+WFDCloseSessionInt@4
+WFDConfigureFirewallForSessionInt@8
+WFDCreateDHPrivatePublicKeyPairInt@16
+WFDDeclineConnectRequestInt@8
+WFDDeclineGroupRequestInt@8
+WFDDiscoverDeviceServiceInformationInt@24
+WFDDiscoverDevicesExInt@16
+WFDDiscoverDevicesInt@12
+WFDFlushVisibleDeviceListInt@4
+WFDForceDisconnectInt@8
+WFDForceDisconnectLegacyPeerInt@12
+WFDFreeMemoryInt@4
+WFDGetDefaultGroupProfileInt@8
+WFDGetDeviceDescriptorForPendingRequestInt@16
+WFDGetNFCCarrierConfigBlobInt@24
+WFDGetOOBBlob@24
+WFDGetPrimaryAdapterStateInt@8
+WFDGetProfileKeyInfoInt@20
+WFDGetSessionEndpointPairsInt@12
+WFDGetVisibleDevicesExInt@12
+WFDGetVisibleDevicesInt@8
+WFDIsInterfaceWiFiDirect@24
+WFDIsWiFiDirectRunningOnWiFiAdapter@20
+WFDLowPrivCancelOpenSessionInt@4
+WFDLowPrivCloseHandleInt@4
+WFDLowPrivCloseLegacySessionInt@12
+WFDLowPrivCloseSessionInt@4
+WFDLowPrivConfigureFirewallForSessionInt@8
+WFDLowPrivDeclineDeviceApiConnectionRequestInt@8
+WFDLowPrivGetPendingGroupRequestDetailsInt@12
+WFDLowPrivGetSessionEndpointPairsInt@12
+WFDLowPrivIsWfdSupportedInt@4
+WFDLowPrivOpenHandleInt@12
+WFDLowPrivOpenLegacySessionInt@12
+WFDLowPrivOpenSessionByDafObjectIdInt@44
+WFDLowPrivQueryPropertyInt@16
+WFDLowPrivRegisterNotificationInt@24
+WFDLowPrivRegisterVMgrCallerInt@12
+WFDLowPrivSetPropertyInt@16
+WFDLowPrivStartDeviceApiConnectionRequestListenerInt@4
+WFDLowPrivStartUsingGroupInt@16
+WFDLowPrivStopDeviceApiConnectionRequestListenerInt@4
+WFDLowPrivStopUsingGroupInt@8
+WFDLowPrivUnregisterVMgrCallerInt@4
+WFDOpenHandle@12
+WFDOpenHandleInt@12
+WFDOpenLegacySession@16
+WFDOpenLegacySessionInt@12
+WFDPairCancelByDeviceAddressInt@8
+WFDPairCancelInt@4
+WFDPairContinuePairWithDeviceInt@12
+WFDPairEnumerateCeremoniesInt@28
+WFDPairSelectCeremonyInt@12
+WFDPairWithDeviceAndOpenSessionExInt@32
+WFDPairWithDeviceAndOpenSessionInt@28
+WFDParseOOBBlob@12
+WFDParseOOBBlobTypeAndGetPayloadInt@20
+WFDParseProfileXmlInt@12
+WFDParseWfaNfcCarrierConfigBlobInt@12
+WFDQueryPropertyInt@16
+WFDRegisterNotificationInt@24
+WFDRegisterVMgrCallerInt@12
+WFDResetSelectedWfdMgrInt@4
+WFDSetAdditionalIEsInt@8
+WFDSetPropertyInt@16
+WFDSetSecondaryDeviceTypeListInt@8
+WFDSetSelectedWfdMgrInt@8
+WFDStartBackgroundDiscoveryInt@8
+WFDStartConnectorPairWithOOB@20
+WFDStartListenerPairWithOOB@28
+WFDStartOffloadedDiscoveryInt@8
+WFDStartOpenSession@20
+WFDStartOpenSessionInt@28
+WFDStartUsingGroupExInt@16
+WFDStartUsingGroupInt@12
+WFDStopBackgroundDiscoveryInt@4
+WFDStopDiscoverDevicesExInt@8
+WFDStopDiscoverDevicesInt@4
+WFDStopOffloadedDiscoveryInt@4
+WFDStopUsingGroupInt@8
+WFDSvcLowPrivAcceptSessionInt@12
+WFDSvcLowPrivCancelSessionInt@4
+WFDSvcLowPrivCloseSessionInt@4
+WFDSvcLowPrivConfigureSessionInt@16
+WFDSvcLowPrivConnectSessionInt@12
+WFDSvcLowPrivGetProvisioningInfoInt@32
+WFDSvcLowPrivGetSessionEndpointPairsInt@12
+WFDSvcLowPrivOpenAdvertiserSessionInt@20
+WFDSvcLowPrivOpenSeekerSessionInt@28
+WFDSvcLowPrivPublishServiceInt@20
+WFDSvcLowPrivUnpublishServiceInt@8
+WFDUnregisterVMgrCallerInt@4
+WFDUpdateDeviceVisibility@4
+WiFiDisplayResetSinkStateInt@4
+WiFiDisplaySetSinkClientHandleInt@4
+WiFiDisplaySetSinkStateInt@4
 WlanAllocateMemory@4
+WlanAllocateProfileIpConfiguration@20
+WlanCancelPlap@4
 WlanCloseHandle@8
 WlanConnect@16
+WlanConnectEx@16
+WlanConnectWithInput@12
+WlanDeinitPlapParams@0
 WlanDeleteProfile@16
+WlanDeviceServiceCommand@36
 WlanDisconnect@12
+WlanDoPlap@44
+WlanDoesBssMatchSecurity@16
+WlanEnumAllInterfaces@4
 WlanEnumInterfaces@12
 WlanExtractPsdIEDataList@24
 WlanFreeMemory@4
+WlanGenerateProfileXmlBasicSettings@40
+WlanGetAvailableNetworkList2@20
 WlanGetAvailableNetworkList@20
 WlanGetFilterList@16
 WlanGetInterfaceCapability@16
+WlanGetMFPNegotiated@8
 WlanGetNetworkBssList@28
 WlanGetProfile@28
 WlanGetProfileCustomUserData@24
+WlanGetProfileEapUserDataInfo@16
+WlanGetProfileIndex@12
+WlanGetProfileKeyInfo@24
 WlanGetProfileList@16
+WlanGetProfileMetadata@24
+WlanGetProfileMetadataWithProfileGuid@24
+WlanGetProfileSsidList@8
+WlanGetRadioInformation@12
 WlanGetSecuritySettings@20
+WlanGetStoredRadioState@12
+WlanGetSupportedDeviceServices@12
+WlanHostedNetworkForceStart@12
+WlanHostedNetworkForceStop@12
+WlanHostedNetworkFreeWCNSettings@4
+WlanHostedNetworkHlpQueryEverUsed@0
+WlanHostedNetworkInitSettings@12
+WlanHostedNetworkQueryProperty@24
+WlanHostedNetworkQuerySecondaryKey@28
+WlanHostedNetworkQueryStatus@12
+WlanHostedNetworkQueryWCNSettings@4
+WlanHostedNetworkRefreshSecuritySettings@12
+WlanHostedNetworkSetProperty@24
+WlanHostedNetworkSetSecondaryKey@28
+WlanHostedNetworkSetWCNSettings@4
+WlanHostedNetworkStartUsing@12
+WlanHostedNetworkStopUsing@12
 WlanIhvControl@32
+WlanInitPlapParams@4
+WlanInternalCancelFTMRequest@4
+WlanInternalGetNetworkBssListWithFTMData@12
+WlanInternalNonDisruptiveScan@8
+WlanInternalNonDisruptiveScanEx@12
+WlanInternalRequestFTM@28
+WlanInternalScan@8
+WlanIsActiveConsoleUser@0
+WlanIsNetworkSuppressed@8
+WlanIsUIRequestPending@12
+WlanLowPrivCloseHandle@4
+WlanLowPrivEnumInterfaces@8
+WlanLowPrivFreeMemory@4
+WlanLowPrivNotifyVsIeProviderInt@28
+WlanLowPrivOpenHandle@12
+WlanLowPrivQueryInterface@24
+WlanLowPrivSetInterface@20
+WlanNotifyVsIeProviderExInt@28
+WlanNotifyVsIeProviderInt@24
 WlanOpenHandle@16
+WlanParseProfileXmlBasicSettings@40
+WlanPrivateCanDeleteProfile@16
+WlanPrivateClearAnqpCache@0
+WlanPrivateDeleteProfile@20
+WlanPrivateEnableAnqpOsuRegistration@4
+WlanPrivateGetAnqpCacheResponse@16
+WlanPrivateGetAnqpOSUProviderList@16
+WlanPrivateGetAnqpOsuRegistrationStatus@4
+WlanPrivateGetAvailableNetworkList@16
+WlanPrivateParseAnqpRawData@16
+WlanPrivateQuery11adPairedConfig@12
+WlanPrivateQueryInterface@20
+WlanPrivateRefreshAnqpCache@12
+WlanPrivateSetInterface@20
+WlanPrivateSetProfile@36
+WlanProfileIpConfigurationGetAddressList@8
+WlanProfileIpConfigurationGetDnsServerList@8
+WlanProfileIpConfigurationGetGatewayList@8
 WlanQueryAutoConfigParameter@24
+WlanQueryCreateAllUserProfileRestricted@8
 WlanQueryInterface@28
+WlanQueryPlapCredentials@32
+WlanQueryPreConnectInput@12
+WlanQueryVirtualInterfaceType@8
 WlanReasonCodeToString@16
+WlanRefreshConnections@4
+WlanRegisterDeviceServiceNotification@8
 WlanRegisterNotification@28
+WlanRegisterVirtualStationNotification@12
+WlanRemoveUIForwardingNetworkList@4
 WlanRenameProfile@20
 WlanSaveTemporaryProfile@28
 WlanScan@20
+WlanSendUIResponse@8
+WlanSetAllUserProfileRestricted@4
 WlanSetAutoConfigParameter@20
 WlanSetFilterList@16
 WlanSetInterface@24
@@ -38,6 +231,35 @@
 WlanSetProfileEapUserData@44
 WlanSetProfileEapXmlUserData@24
 WlanSetProfileList@20
+WlanSetProfileListForOffload@16
+WlanSetProfileMetadata@24
 WlanSetProfilePosition@20
+WlanSetProtectedScenario@16
 WlanSetPsdIEDataList@16
 WlanSetSecuritySettings@12
+WlanSetUIForwardingNetworkList@12
+WlanSignalValueToBar@4
+WlanSignalValueToBarEx@8
+WlanSsidToDisplayName@16
+WlanStartAP@24
+WlanStartMovementDetector@8
+WlanStopAP@12
+WlanStopMovementDetector@4
+WlanStoreRadioStateOnEnteringAirPlaneMode@12
+WlanStringToSsid@8
+WlanStringToUtf8Ssid@8
+WlanTryUpgradeCurrentConnectionAuthCipher@8
+WlanUpdateBasicProfileSecurity@24
+WlanUpdateProfileWithAuthCipher@28
+WlanUtf8SsidToDisplayName@16
+WlanVMgrQueryCurrentScenariosInt@8
+WlanVerifyProfileIpConfiguration@8
+WlanWcmDisconnect@4
+WlanWcmGetInterface@16
+WlanWcmGetProfileList@12
+WlanWcmSetInterface@16
+WlanWcmSetProfile@28
+WlanWfdGOSetWCNSettings@8
+WlanWfdGetPeerInfo@20
+WlanWfdStartGO@4
+WlanWfdStopGO@4