ABSTRACT

In addition, the “windows.h” header Ÿle is required for various type and function deŸnitions used for memory-information-based functions. Hence, include “windows.h” (#include <windows.h>) at the top of the “DiagramEngDoc.cpp” source Ÿle prior to the inclusion of the “psapi.h” header Ÿle.

The PROCESS_MEMORY_COUNTERS structure, used to obtain memory statistics for a process, that may be viewed via the Help index of the Visual Studio development environment [1] is shown in the following, where all members except “cb” and “PageFaultCount” represent sizes in bytes. All Ÿelds except “cb” will be used to display information to the user about memory statistics for an application process: “cb” simply holds the size of the actual structure in bytes.