- Tools Menu
Ph.D., Bud, Zhang, Tan May Fox, Wenzu Ph.D., Ling M.Sc. · 2012
In addition, the “windows.h” header le is required for various type and function denitions used for memory-information-based functions. Hence, include “windows.h” (#include ) 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.