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 FunctionIPv4
 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

原文地址:https://www.cnblogs.com/mydomain/p/1813078.html