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:
Obtaining OS memory performance information
GetPerformanceInfo
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the performance values contained in the PERFORMANCE_INFORMATION structure.
Code examples:
Obtaining OS memory performance information
Declaration:
BOOL WINAPI GetPerformanceInfo(
    __out  PPERFORMANCE_INFORMATION 
        pPerformanceInformation,
    __in   DWORD cb
);
FoxPro declaration:
DECLARE INTEGER GetPerformanceInfo in psapi;
    STRING @pPerfInfo,;
    LONG cb

Parameters:
pPerformanceInformation [out]
A pointer to a PERFORMANCE_INFORMATION structure that receives the performance information.

cb [in]
The size of the PERFORMANCE_INFORMATION structure, in bytes.
Return value:
If the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE. To get extended error information, call GetLastError.
Usage:
nBufSize = 56  && the size of the structure
cBuffer = PADR( CHR(nBufSize), nBufSize )
= GetPerformanceInfo( @cBuffer, nBufSize )
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2010-07-11 02:13:02
Modified: 2010-07-11 02:20:13
Visited in last 7 days: 64
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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.221.136.62)
16 sec.Function: 'GetWindow'
33 sec.Function: 'waveInGetErrorText'
51 sec.Function: 'PeekMessage'
1.13 min.Function: 'DeleteService'
1.4 min.Function: 'GetSystemMenu'
1.68 min.Function: 'URLDownloadToFile'
1.95 min.
Function group: 'Performance Monitoring'
2.23 min.Function: 'GetComputerObjectName'
2.52 min.Function: 'StartDoc'
2.82 min.Function: 'SCardEstablishContext'
Google
Advertise here!