Process Hacker
Main Page
Namespaces
Data Structures
Files
File List
Globals
sysinfo.h
Go to the documentation of this file.
1
#ifndef PH_SYSINFO_H
2
#define PH_SYSINFO_H
3
4
// begin_phapppub
5
typedef
enum
_PH_SYSINFO_VIEW_TYPE
6
{
7
SysInfoSummaryView
,
8
SysInfoSectionView
9
}
PH_SYSINFO_VIEW_TYPE
;
10
11
typedef
VOID
(NTAPI *
PPH_SYSINFO_COLOR_SETUP_FUNCTION
)(
12
_Out_
PPH_GRAPH_DRAW_INFO
DrawInfo,
13
_In_ COLORREF Color1,
14
_In_ COLORREF Color2
15
);
16
17
typedef
struct
_PH_SYSINFO_PARAMETERS
18
{
19
HWND
SysInfoWindowHandle
;
20
HWND
ContainerWindowHandle
;
21
22
HFONT
Font
;
23
HFONT
MediumFont
;
24
HFONT
LargeFont
;
25
ULONG
FontHeight
;
26
ULONG
FontAverageWidth
;
27
ULONG
MediumFontHeight
;
28
ULONG
MediumFontAverageWidth
;
29
COLORREF
GraphBackColor
;
30
COLORREF
PanelForeColor
;
31
PPH_SYSINFO_COLOR_SETUP_FUNCTION
ColorSetupFunction
;
32
33
ULONG
MinimumGraphHeight
;
34
ULONG
SectionViewGraphHeight
;
35
ULONG
PanelWidth
;
36
}
PH_SYSINFO_PARAMETERS
, *
PPH_SYSINFO_PARAMETERS
;
37
38
typedef
enum
_PH_SYSINFO_SECTION_MESSAGE
39
{
40
SysInfoCreate
,
41
SysInfoDestroy
,
42
SysInfoTick
,
43
SysInfoViewChanging
,
// PH_SYSINFO_VIEW_TYPE Parameter1, PPH_SYSINFO_SECTION Parameter2
44
SysInfoCreateDialog
,
// PPH_SYSINFO_CREATE_DIALOG Parameter1
45
SysInfoGraphGetDrawInfo
,
// PPH_GRAPH_DRAW_INFO Parameter1
46
SysInfoGraphGetTooltipText
,
// PPH_SYSINFO_GRAPH_GET_TOOLTIP_TEXT Parameter1
47
SysInfoGraphDrawPanel
,
// PPH_SYSINFO_DRAW_PANEL Parameter1
48
MaxSysInfoMessage
49
}
PH_SYSINFO_SECTION_MESSAGE
;
50
51
typedef
BOOLEAN (NTAPI *
PPH_SYSINFO_SECTION_CALLBACK
)(
52
_In_
struct
_PH_SYSINFO_SECTION
*Section,
53
_In_
PH_SYSINFO_SECTION_MESSAGE
Message,
54
_In_opt_ PVOID Parameter1,
55
_In_opt_ PVOID Parameter2
56
);
57
58
typedef
struct
_PH_SYSINFO_CREATE_DIALOG
59
{
60
BOOLEAN
CustomCreate
;
61
62
// Parameters for default create
63
PVOID
Instance
;
64
PWSTR
Template
;
65
DLGPROC
DialogProc
;
66
PVOID
Parameter
;
67
}
PH_SYSINFO_CREATE_DIALOG
, *
PPH_SYSINFO_CREATE_DIALOG
;
68
69
typedef
struct
_PH_SYSINFO_GRAPH_GET_TOOLTIP_TEXT
70
{
71
ULONG
Index
;
72
PH_STRINGREF
Text
;
73
}
PH_SYSINFO_GRAPH_GET_TOOLTIP_TEXT
, *
PPH_SYSINFO_GRAPH_GET_TOOLTIP_TEXT
;
74
75
typedef
struct
_PH_SYSINFO_DRAW_PANEL
76
{
77
HDC
hdc
;
78
RECT
Rect
;
79
BOOLEAN
CustomDraw
;
80
81
// Parameters for default draw
82
PPH_STRING
Title
;
83
PPH_STRING
SubTitle
;
84
PPH_STRING
SubTitleOverflow
;
85
}
PH_SYSINFO_DRAW_PANEL
, *
PPH_SYSINFO_DRAW_PANEL
;
86
// end_phapppub
87
88
// begin_phapppub
89
typedef
struct
_PH_SYSINFO_SECTION
90
{
91
// Public
92
93
// Initialization
94
PH_STRINGREF
Name
;
95
ULONG
Flags
;
96
PPH_SYSINFO_SECTION_CALLBACK
Callback
;
97
PVOID
Context
;
98
PVOID
Reserved
[3];
99
100
// State
101
HWND
GraphHandle
;
102
PH_GRAPH_STATE
GraphState
;
103
PPH_SYSINFO_PARAMETERS
Parameters
;
104
PVOID
Reserved2
[3];
105
// end_phapppub
106
107
// Private
108
109
struct
110
{
111
ULONG
GraphHot
: 1;
112
ULONG
PanelHot
: 1;
113
ULONG
HasFocus
: 1;
114
ULONG
HideFocus
: 1;
115
ULONG
SpareFlags
: 28;
116
};
117
HWND
DialogHandle
;
118
HWND
PanelHandle
;
119
ULONG
PanelId
;
120
WNDPROC
GraphOldWndProc
;
121
WNDPROC
PanelOldWndProc
;
122
// begin_phapppub
123
}
PH_SYSINFO_SECTION
, *
PPH_SYSINFO_SECTION
;
124
// end_phapppub
125
126
VOID
PhSiNotifyChangeSettings
(
127
VOID
128
);
129
130
// begin_phapppub
131
PHAPPAPI
132
VOID
133
NTAPI
134
PhSiSetColorsGraphDrawInfo
(
135
_Out_
PPH_GRAPH_DRAW_INFO
DrawInfo,
136
_In_ COLORREF Color1,
137
_In_ COLORREF Color2
138
);
139
// end_phapppub
140
141
VOID
PhShowSystemInformationDialog
(
142
_In_opt_ PWSTR SectionName
143
);
144
145
#endif
ProcessHacker
include
sysinfo.h
Generated by
1.8.2