天天看點

4、與CPU,記憶體擷取相關的幾個函數

1、得到cpu占有率的API函數:

 GetSystemTimes

2、得到記憶體使用情況的API函數:

 GlobalMemoryStatusEx Function

 Retrieves information about the system's current usage of both physical and virtual memory.

 GetPerformanceInfo Function

 Retrieves the performance values contained in the PERFORMANCE_INFORMATION structure

3、擷取網卡資訊的API函數:

 GetAdaptersInfo Function(IPv4)

 retrieves adapter information for the local computer.

 On Windows XP and later: Use the GetAdaptersAddresses function instead of GetAdaptersInfo

 GetAdaptersAddresses function

 retrieves the addresses associated with the adapters on the local computer

繼續閱讀