LocalInit

2.x

  BOOL LocalInit(uSegment, uStartAddr, uEndAddr)    
  UINT uSegment; /* segment to contain local heap */
  UINT uStartAddr; /* starting address for heap */
  UINT uEndAddr; /* ending address for heap */

The LocalInit function initializes a local heap in the specified segment.

Parameters

uSegment

Identifies the segment that is to contain the local heap.

uStartAddr

Specifies the starting address of the local heap within the segment.

uEndAddr

Specifies the ending address of the local heap within the segment.

Return Value

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

Comments

The first 16 bytes of the segment containing a local heap must be reserved for use by the system.

See Also

GlobalLock, LocalAlloc, LocalReAlloc