Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 1.57 KB

GetProcessMemoryInfo.md

File metadata and controls

63 lines (42 loc) · 1.57 KB

Home

Function name : GetProcessMemoryInfo

Group: Performance Monitoring - Library: psapi


Retrieves information about the memory usage of the specified process in the PROCESS_MEMORY_COUNTERS structure.


Code examples:

Memory usage info for current VFP session (WinNT only)

Declaration:

BOOL GetProcessMemoryInfo(
  HANDLE Process,                          // handle to process
  PPROCESS_MEMORY_COUNTERS ppsmemCounters, // buffer
  DWORD cb                                 // size of buffer
);  

FoxPro declaration:

DECLARE INTEGER GetProcessMemoryInfo IN psapi;
	INTEGER  Process,;
	STRING @ ppsmemCounters,;
	INTEGER  cb  

Parameters:

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.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

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.