【API】获取当前进程的内存信息
PROCESS_MEMORY_COUNTERS ProMem = {0};
ProMem.cb = sizeof(PROCESS_MEMORY_COUNTERS);
HANDLE hProcess = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ,FALSE,GetCurrentProcessId());
GetProcessMemoryInfo(hProcess,&ProMem,sizeof(ProMem));
CloseHandle(hProcess);
typedef struct _PROCESS_MEMORY_COUNTERS {
DWORD cb;
DWORD PageFaultCount;
SIZE_T PeakWorkingSetSize;
SIZE_T WorkingSetSize;
SIZE_T QuotaPeakPagedPoolUsage;
SIZE_T QuotaPagedPoolUsage;
SIZE_T QuotaPeakNonPagedPoolUsage;
SIZE_T QuotaNonPagedPoolUsage;
SIZE_T PagefileUsage;
SIZE_T PeakPagefileUsage;
} PROCESS_MEMORY_COUNTERS;
你所需要的网站建设服务,我们均能行业靠前的水平为你提供.标准是产品质量的保证,主要从事成都做网站、成都网站制作、成都外贸网站建设、企业网站建设、手机网站制作、网页设计、成都品牌网站建设、网页制作、做网站、建网站。成都创新互联拥有实力坚强的技术研发团队及素养的视觉设计专才。
网站标题:【API】获取当前进程的内存信息
URL地址:http://scyanting.com/article/pgcspd.html