en:docs:win16:api:kernel:localcountfree

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:docs:win16:api:kernel:localcountfree [2023/05/01 14:09] – created prokusheven:docs:win16:api:kernel:localcountfree [2026/03/04 07:01] (current) prokushev
Line 1: Line 1:
 {{page>en:templates:win16api}} {{page>en:templates:win16api}}
  
-======  ====== +====== LocalCountFree ======
 ===== Brief ===== ===== Brief =====
 +Returns the size, in bytes, of the free area in the current local heap.
  
 ===== Syntax ===== ===== Syntax =====
 +<code c>WORD FAR PASCAL LocalCountFree(void);</code>
  
 ===== Parameters ===== ===== Parameters =====
 +This function has no parameters.
  
-===== Return Code =====+===== Return Value ===== 
 +Returns the size, in bytes, of the free area in the current local heap. The "current" heap is the one whose data segment selector is loaded into the DS register at the time of the call.
  
 ===== Notes ===== ===== Notes =====
  
-===== Example Code =====+In normal use, called from within a module, it returns the free space in that module's own local heap.
  
 +===== Example Code =====
 ==== C Binding ==== ==== C Binding ====
 +<code c>#include <windows.h>
  
 +WORD wFreeBytes = LocalCountFree();</code>
 ==== MASM Binding ==== ==== MASM Binding ====
 +<code asm>call LocalCountFree ; Returns AX = free bytes in current local heap</code>
  
 ===== See also ===== ===== See also =====
 +
 +  * [[LocalSize]]
 +  * [[LocalCompact]]
 +
 +
  
 {{page>en:templates:win16}} {{page>en:templates:win16}}