AllocGDIMem

3.1

  #include <stress.h>    

  BOOL AllocGDIMem(uLeft)    
  UINT uLeft; /* number of bytes to leave available */

The AllocGDIMem function allocates memory in the graphics device interface (GDI) heap until only the specified number of bytes is available. Before making any new memory allocations, this function frees memory previously allocated by AllocGDIMem.

Parameters

uLeft

Specifies the amount of memory, in bytes, to leave available in the GDI heap.

Return Value

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

Comments

The FreeAllGDIMem function frees all memory allocated by AllocGDIMem.

See Also

FreeAllGDIMem