Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

WlanAllocateMemory function

The WlanAllocateMemory function allocates memory. Any memory passed to other Native Wifi functions must be allocated with this function.

Syntax


PVOID WINAPI WlanAllocateMemory(
  _In_  DWORD dwMemorySize
);

Parameters

dwMemorySize [in]

Amount of memory being requested, in bytes.

Return value

If the call is successful, the function returns a pointer to the allocated memory.

If the memory could not be allocated for any reason or if the dwMemorySize parameter is 0, the returned pointer is NULL.

An application can call GetLastError to obtain extended error information.

Requirements

Minimum supported client

Windows Vista, Windows XP with SP3 [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Redistributable

Wireless LAN API for Windows XP with SP2

Header

Wlanapi.h (include Wlanapi.h)

Library

Wlanapi.lib

DLL

Wlanapi.dll

See also

WlanFreeMemory

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.