WORD LocalShrink(hSeg,wSize)
This function shrinks the specified heap to the size specified by the wSize parameter. The minimum size for the automatic local heap is defined in the application's module-definition file.
Parameter | Type/Description |
hSeg | HANDLE Identifies the segment that contains the local heap. | |
wSize | WORD Specifies the size (in bytes) desired for the local heap after shrinkage. |
The return value specifies the size of the local heap after shrinkage.
If hSeg is zero, the LocalShrink function reduces the local heap in the current data segment. Windows will not shrink that portion of the data segment that contains the stack and the static variables.
Use the GlobalSize function to determine the new size of the data segment.