资 源 简 介
获取CPU使用率得到内存情况
MEMORYSTATUS MemoryStatus ;
GlobalMemoryStatus(&MemoryStatus) ;
得到CPU情况
FILETIME CreationTime ;
FILETIME ExitTime ;
FILETIME KernelTime ;
FILETIME UserTime ;得到内存情况
MEMORYSTATUS MemoryStatus ;
GlobalMemoryStatus(&MemoryStatus) ;
得到CPU情况
FILETIME CreationTime ;
FILETIME ExitTime ;
FILETIME KernelTime ;
FILETIME UserTime ;
BOOL BReturnCode = GetProcessTimes(GetCurrentProcess(), &CreationTime, &ExitTime, &KernelTime, &UserTime) ;
ULARGE_INTEGER FreeBytesAvailableToCaller ;
ULARGE_INTEGER TotalNumberOfBytes ;
ULARGE_INTEGER TotalNumberOfFreeBytes ;
BOOL GotDiskSpace = GetDiskFreeSpaceEx(NULL, // pointer to the directory name
&FreeBytesAvailableToCaller, // receives the number of by