ReactOS  0.4.15-dev-3446-g30010a5
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 
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:971
ULONG PerfDataGetPagedPoolUsagePages(ULONG Index)
Definition: perfdata.c:806
struct _CMD_LINE_CACHE * pnext
Definition: perfdata.h:63
ULONG PerfDataGetCPUUsage(ULONG Index)
Definition: perfdata.c:680
ULONG PerfDataGetPageFaultCount(ULONG Index)
Definition: perfdata.c:758
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:710
void PerfDataUninitialize(void)
Definition: perfdata.c:85
BOOL PerfDataGetCommandLine(ULONG Index, LPWSTR lpCommandLine, ULONG nMaxCount)
Definition: perfdata.c:540
BOOL PerfDataInitialize(void)
Definition: perfdata.c:64
BOOL PerfDataGetIOCounters(ULONG Index, PIO_COUNTERS pIoCounters)
Definition: perfdata.c:918
BOOL PerfDataGetUserName(ULONG Index, LPWSTR lpUserName, ULONG nMaxCount)
Definition: perfdata.c:522
ULONG PerfDataGetCommitChargeLimitK(void)
Definition: perfdata.c:954
ULONG PerfDataGetThreadCount(ULONG Index)
Definition: perfdata.c:870
unsigned int BOOL
Definition: ntddk_ex.h:94
ULONG NonPagedPoolUsagePages
Definition: perfdata.h:46
WCHAR ImageName[MAX_PATH]
Definition: perfdata.h:33
ULONG PerfDataGetGDIObjectCount(ULONG Index)
Definition: perfdata.c:902
ULONG PerfDataGetSystemHandleCount(void)
Definition: perfdata.c:1094
ULONG PerfDataGetUSERObjectCount(ULONG Index)
Definition: perfdata.c:886
ULONG WorkingSetSizeDelta
Definition: perfdata.h:41
ULONG PerfDataGetPhysicalMemoryAvailableK(void)
Definition: perfdata.c:1062
ULONG HandleCount
Definition: perfdata.h:48
ULONG PerfDataGetPhysicalMemorySystemCacheK(void)
Definition: perfdata.c:1079
__wchar_t WCHAR
Definition: xmlstorage.h:180
ULONG PageFaultCountDelta
Definition: perfdata.h:43
_In_ WDFCOLLECTION _In_ ULONG Index
ULONG PerfDataGetKernelMemoryNonPagedK(void)
Definition: perfdata.c:1028
#define MAX_PATH
Definition: compat.h:34
ULONG BasePriority
Definition: perfdata.h:47
unsigned long DWORD
Definition: ntddk_ex.h:95
ULONG PerfDataGetNonPagedPoolUsagePages(ULONG Index)
Definition: perfdata.c:822
ULONG PerfDataGetProcessId(ULONG Index)
Definition: perfdata.c:506
ULONG WorkingSetSizeBytes
Definition: perfdata.h:39
struct _CMD_LINE_CACHE CMD_LINE_CACHE
struct _PERFDATA PERFDATA
ULONG PerfDataGetWorkingSetSizeDelta(ULONG Index)
Definition: perfdata.c:742
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:696
ULONG PerfDataGetPhysicalMemoryTotalK(void)
Definition: perfdata.c:1045
ULONG PerfDataGetProcessIndex(ULONG pid)
Definition: perfdata.c:440
ULONG PerfDataGetPageFaultCountDelta(ULONG Index)
Definition: perfdata.c:774
ULONG PerfDataGetTotalThreadCount(void)
Definition: perfdata.c:1107
HANDLE ProcessId
Definition: perfdata.h:34
ULONG PerfDataGetProcessorUsage(void)
Definition: perfdata.c:472
ULONG PerfDataGetProcessorSystemUsage(void)
Definition: perfdata.c:481
void PerfDataDeallocCommandLineCache()
Definition: perfdata.c:650
ULONG PerfDataGetSessionId(ULONG Index)
Definition: perfdata.c:664
ULONG PerfDataGetPeakWorkingSetSizeBytes(ULONG Index)
Definition: perfdata.c:726
ULONG PerfDataGetCommitChargeTotalK(void)
Definition: perfdata.c:937
ULONG PeakWorkingSetSizeBytes
Definition: perfdata.h:40
ULONG PageFaultCount
Definition: perfdata.h:42
ULONG PerfDataGetVirtualMemorySizeBytes(ULONG Index)
Definition: perfdata.c:790
ULONG PerfDataGetKernelMemoryTotalK(void)
Definition: perfdata.c:988
struct _CMD_LINE_CACHE * PCMD_LINE_CACHE
BOOL PerfDataGet(ULONG Index, PPERFDATA *lppData)
Definition: perfdata.c:1124
unsigned int ULONG
Definition: retypes.h:1
ULONG GDIObjectCount
Definition: perfdata.h:51
ULONG PerfDataGetBasePriority(ULONG Index)
Definition: perfdata.c:838
ULONG PerfDataGetKernelMemoryPagedK(void)
Definition: perfdata.c:1011
BOOL PerfDataGetImageName(ULONG Index, LPWSTR lpImageName, ULONG nMaxCount)
Definition: perfdata.c:490
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:4857
ULONG PerfDataGetHandleCount(ULONG Index)
Definition: perfdata.c:854
ULONG PerfDataGetProcessCount(void)
Definition: perfdata.c:463
LPWSTR str
Definition: perfdata.h:61
ULONG PagedPoolUsagePages
Definition: perfdata.h:45