8.3 Obtaining Advisory Information

To simplify system analysis, TOOLHELP.DLL includes functions that retrieve general information about the USER heap, GDI heap, memory manager, and virtual timer.

The SystemHeapInfo function fills a SYSHEAPINFO structure with information about the USER and GDI heaps. This information includes the percentage of free space and the segment handle for each heap.

The MemManInfo function fills a MEMMANINFO structure with status and performance information about the memory manager. This information includes the size of the largest free memory object, the maximum number of pages available, the maximum number of lockable pages, total linear space, total unlocked pages, number of pages in the system swap file, and so on.

The TimerCount function fills a TIMERINFO structure with the execution times of the current task and virtual machine (VM).