The WlanFreeMemory function frees memory. Any memory returned from Native Wifi functions must be freed.
void WlanFreeMemory( PVOID pMemory );
Pointer to the memory to be freed.
If pMemory points to memory that has already been freed, an access violation or heap corruption may occur.
There is a hotfix available for Wireless LAN API for Windows XP with Service Pack 2 (SP2) that can help improve the performance of applications that call WlanFreeMemory and WlanGetAvailableNetworkList many times. For more information, see Help and Knowledge Base article 940541, entitled "FIX: The private bytes of the application continuously increase when an application calls the WlanGetAvailableNetworkList function and the WlanFreeMemory function on a Windows XP Service Pack 2-based computer", in the Help and Support Knowledge Base at http://go.microsoft.com/fwlink/p/?linkid=102216.
|Minimum supported client||Windows Vista, Windows XP with SP3 [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|
|Header||wlanapi.h (include Wlanapi.h)|
|Redistributable||Wireless LAN API for Windows XP with SP2|