Allocates a block of memory of specified size from the COM task memory allocator.
[Visual Basic] Public Shared Function AllocCoTaskMem( _ ByVal cb As Integer _ ) As Integer [C#] public static int AllocCoTaskMem( int cb ); [C++] public: static int AllocCoTaskMem( int cb ); [JScript] public static function AllocCoTaskMem( cb : int ) : int;
An integer representing the address of the block of memory allocated.
Marshal Class | Marshal Members | System.Runtime.InteropServices Namespace