|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Sets the upper limit for the size of a memory allocation that will be supported by the small-block heap.
The new small-block threshold size to be set.
_set_sbh_threshold sets the current threshold value for the small-block heap. The default threshold size is 1016 bytes for Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition and Windows NT 4.0 and zero for Windows 2000 and later operating systems. By default, the small-block heap is not used on Windows 2000 and later operating systems, though _set_sbh_threshold can be called with a nonzero value to enable the small-block heap in those instances.
Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003
For more compatibility information, see Compatibility in the Introduction.
Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.