ReactOS  0.4.11-dev-946-g431643b
perfdata.h
Go to the documentation of this file.
1 /*
2  * ReactOS Task Manager
3  *
4  * perfdata.h
5  *
6  * Copyright (C) 1999 - 2001 Brian Palmer <brianp@reactos.org>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 
23 #pragma once
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 #define Li2Double(x) ((double)((x).HighPart) * 4.294967296E9 + (double)((x).LowPart))
30 
31 typedef struct _PERFDATA
32 {
53 
57 
58 typedef struct _CMD_LINE_CACHE
59 {
65 
67 void PerfDataUninitialize(void);
68 void PerfDataRefresh(void);
69 
70 BOOL PerfDataGet(ULONG Index, PPERFDATA *lppData);
75 
79 
82 
100 
104 
108 
112 
114 
116 
117 
118 #ifdef __cplusplus
119 };
120 #endif
_In_ ULONG_PTR _In_ ULONG _Out_ ULONG_PTR * pid
Definition: winddi.h:3835
struct _PERFDATA * PPERFDATA
WCHAR UserName[MAX_PATH]
Definition: perfdata.h:35
ULONG PerfDataGetCommitChargePeakK(void)
Definition: perfdata.c:980
ULONG PerfDataGetPagedPoolUsagePages(ULONG Index)
Definition: perfdata.c:815
struct _CMD_LINE_CACHE * pnext
Definition: perfdata.h:63
ULONG PerfDataGetCPUUsage(ULONG Index)
Definition: perfdata.c:689
__wchar_t WCHAR
Definition: xmlstorage.h:180
ULONG PerfDataGetPageFaultCount(ULONG Index)
Definition: perfdata.c:767
ULONG SessionId
Definition: perfdata.h:36
ULONG USERObjectCount
Definition: perfdata.h:50
IO_COUNTERS IOCounters
Definition: perfdata.h:52
ULONG CPUUsage
Definition: perfdata.h:37
ULONG PerfDataGetWorkingSetSizeBytes(ULONG Index)
Definition: perfdata.c:719
void PerfDataUninitialize(void)
Definition: perfdata.c:85
BOOL PerfDataGetCommandLine(ULONG Index, LPWSTR lpCommandLine, ULONG nMaxCount)
Definition: perfdata.c:549
BOOL PerfDataInitialize(void)
Definition: perfdata.c:64
BOOL PerfDataGetIOCounters(ULONG Index, PIO_COUNTERS pIoCounters)
Definition: perfdata.c:927
BOOL PerfDataGetUserName(ULONG Index, LPWSTR lpUserName, ULONG nMaxCount)
Definition: perfdata.c:531
ULONG PerfDataGetCommitChargeLimitK(void)
Definition: perfdata.c:963
ULONG PerfDataGetThreadCount(ULONG Index)
Definition: perfdata.c:879
ULONG NonPagedPoolUsagePages
Definition: perfdata.h:46
WCHAR ImageName[MAX_PATH]
Definition: perfdata.h:33
ULONG PerfDataGetGDIObjectCount(ULONG Index)
Definition: perfdata.c:911
ULONG PerfDataGetSystemHandleCount(void)
Definition: perfdata.c:1103
ULONG PerfDataGetUSERObjectCount(ULONG Index)
Definition: perfdata.c:895
ULONG WorkingSetSizeDelta
Definition: perfdata.h:41
ULONG PerfDataGetPhysicalMemoryAvailableK(void)
Definition: perfdata.c:1071
ULONG HandleCount
Definition: perfdata.h:48
ULONG PerfDataGetPhysicalMemorySystemCacheK(void)
Definition: perfdata.c:1088
unsigned int BOOL
Definition: ntddk_ex.h:94
ULONG PageFaultCountDelta
Definition: perfdata.h:43
ULONG PerfDataGetKernelMemoryNonPagedK(void)
Definition: perfdata.c:1037
#define MAX_PATH
Definition: compat.h:26
static const UCHAR Index[8]
Definition: usbohci.c:18
ULONG BasePriority
Definition: perfdata.h:47
unsigned long DWORD
Definition: ntddk_ex.h:95
ULONG PerfDataGetNonPagedPoolUsagePages(ULONG Index)
Definition: perfdata.c:831
ULONG PerfDataGetProcessId(ULONG Index)
Definition: perfdata.c:515
ULONG WorkingSetSizeBytes
Definition: perfdata.h:39
struct _CMD_LINE_CACHE CMD_LINE_CACHE
struct _PERFDATA PERFDATA
ULONG PerfDataGetWorkingSetSizeDelta(ULONG Index)
Definition: perfdata.c:751
LARGE_INTEGER CPUTime
Definition: perfdata.h:38
void PerfDataRefresh(void)
Definition: perfdata.c:175
ULONG ThreadCount
Definition: perfdata.h:49
LARGE_INTEGER PerfDataGetCPUTime(ULONG Index)
Definition: perfdata.c:705
ULONG PerfDataGetPhysicalMemoryTotalK(void)
Definition: perfdata.c:1054
ULONG PerfDataGetProcessIndex(ULONG pid)
Definition: perfdata.c:449
ULONG PerfDataGetPageFaultCountDelta(ULONG Index)
Definition: perfdata.c:783
ULONG PerfDataGetTotalThreadCount(void)
Definition: perfdata.c:1116
HANDLE ProcessId
Definition: perfdata.h:34
ULONG PerfDataGetProcessorUsage(void)
Definition: perfdata.c:481
ULONG PerfDataGetProcessorSystemUsage(void)
Definition: perfdata.c:490
void PerfDataDeallocCommandLineCache()
Definition: perfdata.c:659
ULONG PerfDataGetSessionId(ULONG Index)
Definition: perfdata.c:673
ULONG PerfDataGetPeakWorkingSetSizeBytes(ULONG Index)
Definition: perfdata.c:735
ULONG PerfDataGetCommitChargeTotalK(void)
Definition: perfdata.c:946
ULONG PeakWorkingSetSizeBytes
Definition: perfdata.h:40
ULONG PageFaultCount
Definition: perfdata.h:42
ULONG PerfDataGetVirtualMemorySizeBytes(ULONG Index)
Definition: perfdata.c:799
ULONG PerfDataGetKernelMemoryTotalK(void)
Definition: perfdata.c:997
struct _CMD_LINE_CACHE * PCMD_LINE_CACHE
BOOL PerfDataGet(ULONG Index, PPERFDATA *lppData)
Definition: perfdata.c:1133
unsigned int ULONG
Definition: retypes.h:1
ULONG GDIObjectCount
Definition: perfdata.h:51
ULONG PerfDataGetBasePriority(ULONG Index)
Definition: perfdata.c:847
ULONG PerfDataGetKernelMemoryPagedK(void)
Definition: perfdata.c:1020
BOOL PerfDataGetImageName(ULONG Index, LPWSTR lpImageName, ULONG nMaxCount)
Definition: perfdata.c:499
WCHAR * LPWSTR
Definition: xmlstorage.h:184
LARGE_INTEGER KernelTime
Definition: perfdata.h:55
ULONG VirtualMemorySizeBytes
Definition: perfdata.h:44
LARGE_INTEGER UserTime
Definition: perfdata.h:54
_In_ int nMaxCount
Definition: winuser.h:4746
ULONG PerfDataGetHandleCount(ULONG Index)
Definition: perfdata.c:863
ULONG PerfDataGetProcessCount(void)
Definition: perfdata.c:472
LPWSTR str
Definition: perfdata.h:61
ULONG PagedPoolUsagePages
Definition: perfdata.h:45