AllocMem

3.1

  #include <stress.h>    

  BOOL AllocMem(dwLeft)    
  DWORD dwLeft; /*smallest memory allocation, */  

The AllocMem function allocates global memory until only the specified number of bytes is available in the global heap. Before making any new memory allocations, this function frees memory previously allocated by AllocMem.

Parameters

dwLeft

Specifies the smallest size, in bytes, of memory allocations to make.

Return Value

The return value is nonzero if the function is successful. Otherwise, it is zero.

Comments

The FreeAllMem function frees all memory allocated by AllocMem.

See Also

FreeAllMem