###User Defined Function###
_WinAPI_CoTaskMemAlloc

###Description###
Allocates a block of task memory.

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


###Parameters###
@@ParamTable@@
$iSize
	The size of the memory block to be allocated, in bytes.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success 	The allocated memory block.
Failure 	0.
@@End@@


###Remarks###
If $iSize is 0, <a href="_WinAPI_CoTaskMemAlloc.htm">_WinAPI_CoTaskMemAlloc()</a> 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.


###Related###


###See Also###
@@MsdnLink@@ CoTaskMemAlloc
