Click to Rate and Give Feedback
MSDN
MSDN Library
Networking
Wireless Networking
Native Wifi
 WlanFreeMemory Function
WlanFreeMemory Function

The WlanFreeMemory function frees memory. Any memory returned from Native Wifi functions must be freed.

Syntax

C++
VOID WINAPI WlanFreeMemory(
  __in  PVOID pMemory
);

Parameters

pMemory [in]

Pointer to the memory to be freed.

Return Value

None.

Remarks

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/?LinkId=102216.

Requirements

Minimum supported clientWindows Vista, Windows XP with SP3
Minimum supported serverWindows Server 2008
RedistributableWireless LAN API for Windows XP with SP2
HeaderWlanapi.h (include Wlanapi.h)
LibraryWlanapi.lib
DLLWlanapi.dll

See Also

WlanAllocateMemory

Send comments about this topic to Microsoft

Build date: 10/29/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker