This is part of Win16 API which allow to create versions of program from one source code to run under OS/2 and Win16. Under OS/2 program can be running under Win-OS/2 if program is Windows NE executable, and with help on Windows Libraries for OS/2, if it is OS/2 NE executable. Here is a WLO to OS/2 API mapping draft

LocalHandleDelta

Brief

Sets the number of handle table entries to be allocated when the local heap manager runs out of handle table entries for local moveable objects.

Syntax

short WINAPI LocalHandleDelta( short nNewDelta );

Parameters

nNewDelta – A short integer value specifying the number of handle table entries to be allocated (the “handle delta”). If nNewDelta is zero, the current handle delta is returned without change.

Return Value

Returns the current handle delta (after applying any change).

Notes

The local heap manager maintains a handle table for moveable objects. When the table becomes full, it allocates new entries in blocks; the size of this block is the handle delta.

This function allows an application to control the granularity of handle table expansion.

A larger delta reduces the frequency of expansions but consumes more memory; a smaller delta saves memory but may lead to more frequent expansions.

Used for fine‑tuning performance in applications that manipulate many moveable objects.

Example Code

C Binding

// Get current delta short currentDelta = LocalHandleDelta(0); // Set new delta to 16 entries short oldDelta = LocalHandleDelta(16);

MASM Binding

; AX = new delta (0 to query) push ax call LocalHandleDelta ; Returns AX = current (or new) delta

See also

LocalAlloc

LocalReAlloc

Group	Functions
Module manager	GETVERSION GETMODULEHANDLE GETMODULEUSAGE GETMODULEFILENAME GETPROCADDRESS MAKEPROCINSTANCE FREEPROCINSTANCE GETINSTANCEDATA CATCH THROW GETCODEHANDLE LOADLIBRARY
Global Memory Manager	GlobalAlloc GlobalCompact GlobalDiscard GlobalFree GlobalLock GlobalReAlloc GlobalSize GlobalUnlock GlobalFlags
Local Memory Manager	LocalInit LocalAlloc LocalCompact LocalDiscard LocalFree LocalLock LocalFreeze LocalMelt LocalReAlloc LocalSize LocalUnlock LocalHandleDelta LockData UnlockData LocalFlags
Task Scheduler	GetCurrentTask Yield SetPriority
Resource Manager	AddFontResource RemoveFontResource LoadBitmap LoadCursor LoadIcon LoadMenu LoadString LoadAccelerators FindResource LoadResource AllocResource LockResource FreeResource AccessResource SizeofResource SetResourceHandler
String Translation	AnsiUpper AnsiLower AnsiNext AnsiPrev
Atom Manager	InitAtomTable AddAtom DeleteAtom FindAtom GetAtomName
Windows Initialization File	GetProfileInt GetProfileString WriteProfileString
Debugging	FatalExit
File I/O	_lopen _lcreat _llseek _lread _lwrite _lclose OpenFile GetTempFileName GetTempDrive
Registry	RegOpenKey RegCreateKey RegCloseKey RegDeleteKey RegSetValue RegQueryValue RegEnumKey
Dialogs	MessageBox