WlanAllocateMemory (Compact 7)
This function allocates memory. Any memory passed to other Native Wi-Fi functions must be allocated with this function.
PVOID WINAPI WlanAllocateMemory( __in DWORD dwMemorySize );
Amount of memory being requested, in bytes
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.