Using Win32 functions in Visual FoxPro Image Gallery
Performance Monitoring
..msdn
CreateToolhelp32Snapshot
EnumDeviceDrivers
EnumProcesses
EnumProcessModules
GetDeviceDriverBaseName
GetDeviceDriverFileName
GetModuleBaseName
GetModuleFileNameEx
GetPerformanceInfo
GetProcessMemoryInfo
Process32First
Process32Next
Code examples:
Memory usage info for current VFP session (WinNT only)
GetProcessMemoryInfo
..msdn    Add comment     W32 Constants      Translate this page
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.
My comment:
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
Word Index links for the GetProcessMemoryInfo :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-10-25 20:58:36
Modified: 2008-03-26 17:20:53
Visited in last 7 days: 28
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.81.79.128)
7 sec.Function: 'InternetGetCookie'
14 sec.Function: 'GdipGetImageGraphicsContext'
21 sec.Function: 'CommandLineToArgvW'
28 sec.Function: 'ImageList_Create'
34 sec.Function: 'RpcStringFree'
41 sec.Function: 'EnableWindow'
48 sec.Function: 'GetLogicalDriveStrings'
55 sec.Function: 'SQLGetPrivateProfileString'
1.03 min.Function: 'waveOutGetErrorText'
1.13 min.Function: 'GetSecurityDescriptorDacl'
Google
Advertise here!