Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.1 KB

GetPerformanceInfo.md

File metadata and controls

48 lines (33 loc) · 1.1 KB

Home

Function name : GetPerformanceInfo

Group: Performance Monitoring - Library: psapi


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.