Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en:docs:win16:modules:local_heap [2026/02/26 01:30] – prokushev | en:docs:win16:modules:local_heap [2026/02/26 01:33] (current) – prokushev | ||
|---|---|---|---|
| Line 35: | Line 35: | ||
| Every local heap begins with an instance of the HeapInfo structure, which is identical to the one used by the global heap and is defined in WINKERN.INC. Its location is given by the pLocalHeap field at offset 6 of the Instance Data. Immediately following the HeapInfo structure are additional fields that, together with HeapInfo, form the LocalInfo structure. | Every local heap begins with an instance of the HeapInfo structure, which is identical to the one used by the global heap and is defined in WINKERN.INC. Its location is given by the pLocalHeap field at offset 6 of the Instance Data. Immediately following the HeapInfo structure are additional fields that, together with HeapInfo, form the LocalInfo structure. | ||
| - | ===== HeapInfo Structure (386) ===== | + | ===== HeapInfo Structure (KRNL386) ===== |
| Under KRNL386, the HeapInfo structure occupies **1Eh** bytes and has the following format (according to " | Under KRNL386, the HeapInfo structure occupies **1Eh** bytes and has the following format (according to " | ||
| Line 54: | Line 54: | ||
| | 1Ch | WORD | hi_pstats | A near pointer to a LocalStats structure which the local heap uses in the debug KERNEL. As the local heap does various things, such as search for free blocks, it increments fields in the structure. The structure is defined in WINKERN.INC. | | | 1Ch | WORD | hi_pstats | A near pointer to a LocalStats structure which the local heap uses in the debug KERNEL. As the local heap does various things, such as search for free blocks, it increments fields in the structure. The structure is defined in WINKERN.INC. | | ||
| - | ===== HeapInfo Structure (286) ===== | + | ===== HeapInfo Structure (KRNL286) ===== |
| Under KRNL286, the HeapInfo structure occupies 18h bytes. The layout is as follows: | Under KRNL286, the HeapInfo structure occupies 18h bytes. The layout is as follows: | ||




