1 /* Console Task Manager
3 ctm.h - header file for main program
5 Written by: Aleksey Bragin (aleksey@studiocerebral.com)
7 Most of this file content is taken from
8 ReactOS Task Manager written by Brian Palmer (brianp@reactos.org)
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
27 #define Li2Double(x) ((double)((x).u.HighPart) * 4.294967296E9 + (double)((x).u.LowPart))
29 typedef struct _PERFDATA
31 WCHAR ImageName
[MAX_PATH
];
33 WCHAR UserName
[MAX_PATH
];
36 LARGE_INTEGER CPUTime
;
37 ULONG WorkingSetSizeBytes
;
38 ULONG PeakWorkingSetSizeBytes
;
39 ULONG WorkingSetSizeDelta
;
41 ULONG PageFaultCountDelta
;
42 ULONG VirtualMemorySizeBytes
;
43 ULONG PagedPoolUsagePages
;
44 ULONG NonPagedPoolUsagePages
;
48 ULONG USERObjectCount
;
50 //IO_COUNTERS IOCounters;
52 LARGE_INTEGER UserTime
;
53 LARGE_INTEGER KernelTime
;
54 LARGE_INTEGER CreateTime
;
55 } PERFDATA
, *PPERFDATA
;
57 #define SystemTimeInformation 3