Allocates the specified number of bytes from the custom library heap.

AllocMem(nNumberOfBytes)

Parameters

nNumberOfBytes

The number of bytes to allocate.

Return Value

A pointer (numeric) to the allocated memory block or 0 if an error occured.

Remarks

The allocated memory is initialized to zero.

See Also

Reference

AllocHGlobal
AllocMemTo
AMemBlocks
CompactMem
FreeHGlobal
FreeMem
FreePMem
FreeRefArray
LockHGlobal
ReAllocHGlobal
ReAllocMem
SizeOfMem
UnlockHGlobal
ValidateMem

Used WinApi functions

HeapAlloc