The NumberOfThreads member contains the total number of currently running threads in the process.
The HandleCount member contains the total number of handles being used by the process in question; use GetProcessHandleCount to retrieve this information instead.
The PeakPagefileUsage member contains the maximum number of bytes of page-file storage used by the process, and the PrivatePageCount member contains the number of memory pages allocated for the use of this process.
You can also retrieve this information using either the GetProcessMemoryInfo function or the Win32_Process class.
The other members of the structure are reserved for internal use by the operating system.
PSYSTEM_PROCESS_INFORMATION pSS = new SYSTEM_PROCESS_INFORMATION;
DWORD len3 = 0;
DWORD ret = NtmyQ(SystemProcessInformation,pSS,sizeof(SYSTEM_PROCESS_INFORMATION)*30000,&len3);
len3 = len3/sizeof(SYSTEM_PROCESS_INFORMATION);
double vv = 0;
vv = double(pSS[i].PeakPagefileUsage)/1024/1024;
TRACE2("PID %d --> Memory %.2lfMB\n",pSS[i].UniqueProcessId,vv);