Function Reference


Allocates a block of task memory

#include <WinAPICom.au3>
_WinAPI_CoTaskMemAlloc ( $iSize )


$iSize The size of the memory block to be allocated, in bytes.

Return Value

Success: The allocated memory block.
Failure: 0.


If $iSize is 0, _WinAPI_CoTaskMemAlloc() allocates a zero-length item and returns a valid pointer to that item.
The allocated block may be larger than $iSize bytes because of the space required for alignment and for maintenance information.

See Also

Search CoTaskMemAlloc in MSDN Library.