Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en:docs:win16:api:kernel:localcountfree [2026/03/04 06:58] – prokushev | en:docs:win16:api:kernel:localcountfree [2026/03/04 07:01] (current) – prokushev | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ====== LocalCountFree ====== | ====== LocalCountFree ====== | ||
| - | ==== Brief ==== | + | ===== Brief ===== |
| - | Returns the number | + | Returns the size, in bytes, |
| - | ==== Syntax ==== | + | ===== Syntax |
| - | <code c>UINT WINAPI | + | <code c>WORD FAR PASCAL |
| - | HANDLE hHeap | + | |
| - | );</ | + | |
| - | ==== Parameters ==== | + | ===== Parameters ===== |
| + | This function has no parameters. | ||
| - | hHeap – Handle (selector) | + | ===== Return Value ===== |
| + | Returns the size, in bytes, | ||
| - | ==== Return Value ==== | + | ===== Notes ===== |
| - | Returns the number of free entries (or free bytes) in the local heap. The exact meaning of the return value is not documented. | + | |
| - | ==== Notes ==== | + | In normal use, called from within a module, it returns the free space in that module' |
| - | Presumably, the function was used for debugging or monitoring the state of the local heap, allowing a program to determine the degree of fragmentation. | + | ===== Example Code ===== |
| - | + | ||
| - | + | ||
| - | ==== Example Code ==== | + | |
| ==== C Binding ==== | ==== C Binding ==== | ||
| <code c># | <code c># | ||
| - | // Hypothetical usage | + | WORD wFreeBytes |
| - | UINT uFreeCount | + | |
| ==== MASM Binding ==== | ==== MASM Binding ==== | ||
| - | <code asm>; AX = 0 (current data segment) | + | <code asm>call LocalCountFree ; Returns AX = free bytes in current local heap</ |
| - | push ax ; hHeap | + | |
| - | call LocalCountFree ; Returns AX = number of free entries</ | + | |
| - | ==== See also ==== | + | ===== See also ===== |
| * [[LocalSize]] | * [[LocalSize]] | ||
| - | * [[LocalFlags]] | ||
| * [[LocalCompact]] | * [[LocalCompact]] | ||
| + | |||
| {{page> | {{page> | ||




