Process Hacker
sysinfo.h
Go to the documentation of this file.
1 #ifndef PH_SYSINFO_H
2 #define PH_SYSINFO_H
3 
4 // begin_phapppub
6 {
10 
12  _Out_ PPH_GRAPH_DRAW_INFO DrawInfo,
13  _In_ COLORREF Color1,
14  _In_ COLORREF Color2
15  );
16 
17 typedef struct _PH_SYSINFO_PARAMETERS
18 {
21 
22  HFONT Font;
23  HFONT MediumFont;
24  HFONT LargeFont;
25  ULONG FontHeight;
29  COLORREF GraphBackColor;
30  COLORREF PanelForeColor;
32 
35  ULONG PanelWidth;
37 
39 {
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
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 
59 {
60  BOOLEAN CustomCreate;
61 
62  // Parameters for default create
63  PVOID Instance;
64  PWSTR Template;
65  DLGPROC DialogProc;
66  PVOID Parameter;
68 
70 {
71  ULONG Index;
74 
75 typedef struct _PH_SYSINFO_DRAW_PANEL
76 {
77  HDC hdc;
78  RECT Rect;
79  BOOLEAN CustomDraw;
80 
81  // Parameters for default draw
86 // end_phapppub
87 
88 // begin_phapppub
89 typedef struct _PH_SYSINFO_SECTION
90 {
91  // Public
92 
93  // Initialization
95  ULONG Flags;
97  PVOID Context;
98  PVOID Reserved[3];
99 
100  // State
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  };
119  ULONG PanelId;
122 // begin_phapppub
124 // end_phapppub
125 
127  VOID
128  );
129 
130 // begin_phapppub
131 PHAPPAPI
132 VOID
133 NTAPI
135  _Out_ PPH_GRAPH_DRAW_INFO DrawInfo,
136  _In_ COLORREF Color1,
137  _In_ COLORREF Color2
138  );
139 // end_phapppub
140 
142  _In_opt_ PWSTR SectionName
143  );
144 
145 #endif