WlanAllocateMemory (Compact 7)

3/12/2014

This function allocates memory. Any memory passed to other Native Wi-Fi functions must be allocated with this function.

Syntax

PVOID WINAPI WlanAllocateMemory(
  __in  DWORD dwMemorySize
);

Parameters

  • dwMemorySize
    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.

See Also

Reference

Native Wi-Fi Functions
WlanFreeMemory
Native Wi-Fi Reference

Other Resources

GetLastError