BootAlloc Function (Compact 2013)
3/26/2014
BootAlloc allocates memory from the heap by looking for a free block of memory large enough to accommodate the amount of memory specified by the size parameter. The size limit is 512 KB.
The memory is allocated but not cleared.
This function is implemented in:
%_WINCEROOT%\Platform\Common\Src\Common\Bldr\Core\Common\Heap.c
Its syntax is:
void* BootAlloc ( size_t size );
BootAlloc Function Input Parameters
Parameter |
Type |
Description |
---|---|---|
size |
size_t |
Size, in bytes, of the memory block to be allocated. |
If successful, the return value is a pointer to the allocated memory block.
If unsuccessful, the return value is NULL.