Group: Performance Monitoring - Library: psapi
Retrieves information about the memory usage of the specified process in the PROCESS_MEMORY_COUNTERS structure.
Memory usage info for current VFP session (WinNT only)
BOOL GetProcessMemoryInfo(
HANDLE Process, // handle to process
PPROCESS_MEMORY_COUNTERS ppsmemCounters, // buffer
DWORD cb // size of buffer
);
DECLARE INTEGER GetProcessMemoryInfo IN psapi;
INTEGER Process,;
STRING @ ppsmemCounters,;
INTEGER cb
Process [in] Handle to the process.
ppsmemCounters [out] Pointer to the PROCESS_MEMORY_COUNTERS structure that receives information about the memory usage of the process.
cb [in] Specifies the size, in bytes, of the PROCESS_MEMORY_COUNTERS structure.
If the function succeeds, the return value is nonzero.
Windows NT/2000/XP: Included in Windows NT 4.0 and later.
Windows 95/98/Me: Unsupported.
See also WinNT Performance Monitor.
See also: GetProcessIoCounters, GetProcessTimes, GetProcessVersion.