Process Hacker
Main Page
Namespaces
Data Structures
Files
File List
Globals
procprpp.h
Go to the documentation of this file.
1
#ifndef PH_PROCPRPP_H
2
#define PH_PROCPRPP_H
3
4
typedef
struct
_PH_PROCESS_PROPSHEETCONTEXT
5
{
6
WNDPROC
OldWndProc
;
7
PH_LAYOUT_MANAGER
LayoutManager
;
8
PPH_LAYOUT_ITEM
TabPageItem
;
9
BOOLEAN
LayoutInitialized
;
10
}
PH_PROCESS_PROPSHEETCONTEXT
, *
PPH_PROCESS_PROPSHEETCONTEXT
;
11
12
VOID
NTAPI
PhpProcessPropContextDeleteProcedure
(
13
_In_ PVOID Object,
14
_In_ ULONG Flags
15
);
16
17
INT CALLBACK
PhpPropSheetProc
(
18
_In_ HWND hwndDlg,
19
_In_ UINT uMsg,
20
_In_ LPARAM lParam
21
);
22
23
PPH_PROCESS_PROPSHEETCONTEXT
PhpGetPropSheetContext
(
24
_In_ HWND hwnd
25
);
26
27
LRESULT CALLBACK
PhpPropSheetWndProc
(
28
_In_ HWND hwnd,
29
_In_ UINT uMsg,
30
_In_ WPARAM wParam,
31
_In_ LPARAM lParam
32
);
33
34
VOID
NTAPI
PhpProcessPropPageContextDeleteProcedure
(
35
_In_ PVOID Object,
36
_In_ ULONG Flags
37
);
38
39
INT CALLBACK
PhpStandardPropPageProc
(
40
_In_ HWND hwnd,
41
_In_ UINT uMsg,
42
_In_ LPPROPSHEETPAGE ppsp
43
);
44
45
INT_PTR CALLBACK
PhpProcessGeneralDlgProc
(
46
_In_ HWND hwndDlg,
47
_In_ UINT uMsg,
48
_In_ WPARAM wParam,
49
_In_ LPARAM lParam
50
);
51
52
INT_PTR CALLBACK
PhpProcessStatisticsDlgProc
(
53
_In_ HWND hwndDlg,
54
_In_ UINT uMsg,
55
_In_ WPARAM wParam,
56
_In_ LPARAM lParam
57
);
58
59
INT_PTR CALLBACK
PhpProcessPerformanceDlgProc
(
60
_In_ HWND hwndDlg,
61
_In_ UINT uMsg,
62
_In_ WPARAM wParam,
63
_In_ LPARAM lParam
64
);
65
66
INT_PTR CALLBACK
PhpProcessThreadsDlgProc
(
67
_In_ HWND hwndDlg,
68
_In_ UINT uMsg,
69
_In_ WPARAM wParam,
70
_In_ LPARAM lParam
71
);
72
73
INT_PTR CALLBACK
PhpProcessTokenHookProc
(
74
_In_ HWND hwndDlg,
75
_In_ UINT uMsg,
76
_In_ WPARAM wParam,
77
_In_ LPARAM lParam
78
);
79
80
INT_PTR CALLBACK
PhpProcessModulesDlgProc
(
81
_In_ HWND hwndDlg,
82
_In_ UINT uMsg,
83
_In_ WPARAM wParam,
84
_In_ LPARAM lParam
85
);
86
87
INT_PTR CALLBACK
PhpProcessMemoryDlgProc
(
88
_In_ HWND hwndDlg,
89
_In_ UINT uMsg,
90
_In_ WPARAM wParam,
91
_In_ LPARAM lParam
92
);
93
94
INT_PTR CALLBACK
PhpProcessEnvironmentDlgProc
(
95
_In_ HWND hwndDlg,
96
_In_ UINT uMsg,
97
_In_ WPARAM wParam,
98
_In_ LPARAM lParam
99
);
100
101
typedef
struct
_PH_HANDLE_ITEM_INFO
102
{
103
HANDLE
ProcessId
;
104
HANDLE
Handle
;
105
PPH_STRING
TypeName
;
106
PPH_STRING
BestObjectName
;
107
}
PH_HANDLE_ITEM_INFO
, *
PPH_HANDLE_ITEM_INFO
;
108
109
#define PhaAppendCtrlEnter(Text, Enable) ((Enable) ? PhaConcatStrings2((Text), L"\tCtrl+Enter")->Buffer : (Text))
110
111
VOID
PhInsertHandleObjectPropertiesEMenuItems
(
112
_In_
struct
_PH_EMENU_ITEM
*Menu,
113
_In_ ULONG InsertBeforeId,
114
_In_ BOOLEAN EnableShortcut,
115
_In_ PPH_HANDLE_ITEM_INFO Info
116
);
117
118
#define PH_MAX_SECTION_EDIT_SIZE (32 * 1024 * 1024) // 32 MB
119
120
VOID
PhShowHandleObjectProperties1
(
121
_In_ HWND hWnd,
122
_In_ PPH_HANDLE_ITEM_INFO Info
123
);
124
125
VOID
PhShowHandleObjectProperties2
(
126
_In_ HWND hWnd,
127
_In_ PPH_HANDLE_ITEM_INFO Info
128
);
129
130
INT_PTR CALLBACK
PhpProcessHandlesDlgProc
(
131
_In_ HWND hwndDlg,
132
_In_ UINT uMsg,
133
_In_ WPARAM wParam,
134
_In_ LPARAM lParam
135
);
136
137
INT_PTR CALLBACK
PhpProcessServicesDlgProc
(
138
_In_ HWND hwndDlg,
139
_In_ UINT uMsg,
140
_In_ WPARAM wParam,
141
_In_ LPARAM lParam
142
);
143
144
#define WM_PH_THREAD_ADDED (WM_APP + 201)
145
#define WM_PH_THREAD_MODIFIED (WM_APP + 202)
146
#define WM_PH_THREAD_REMOVED (WM_APP + 203)
147
#define WM_PH_THREADS_UPDATED (WM_APP + 204)
148
#define WM_PH_THREAD_SELECTION_CHANGED (WM_APP + 205)
149
150
// begin_phapppub
151
typedef
struct
_PH_THREADS_CONTEXT
152
{
153
PPH_THREAD_PROVIDER
Provider
;
154
PH_CALLBACK_REGISTRATION
ProviderRegistration
;
155
PH_CALLBACK_REGISTRATION
AddedEventRegistration
;
156
PH_CALLBACK_REGISTRATION
ModifiedEventRegistration
;
157
PH_CALLBACK_REGISTRATION
RemovedEventRegistration
;
158
PH_CALLBACK_REGISTRATION
UpdatedEventRegistration
;
159
PH_CALLBACK_REGISTRATION
LoadingStateChangedEventRegistration
;
160
161
HWND
WindowHandle
;
162
// end_phapppub
163
164
union
165
{
166
PH_THREAD_LIST_CONTEXT
ListContext
;
167
struct
168
{
169
HWND
Private
;
// phapppub
170
HWND
TreeNewHandle
;
// phapppub
171
}
PublicUse
;
172
};
173
BOOLEAN
NeedsRedraw
;
174
// begin_phapppub
175
}
PH_THREADS_CONTEXT
, *
PPH_THREADS_CONTEXT
;
176
// end_phapppub
177
178
#define WM_PH_MODULE_ADDED (WM_APP + 211)
179
#define WM_PH_MODULE_MODIFIED (WM_APP + 212)
180
#define WM_PH_MODULE_REMOVED (WM_APP + 213)
181
#define WM_PH_MODULES_UPDATED (WM_APP + 214)
182
183
// begin_phapppub
184
typedef
struct
_PH_MODULES_CONTEXT
185
{
186
PPH_MODULE_PROVIDER
Provider
;
187
PH_PROVIDER_REGISTRATION
ProviderRegistration
;
188
PH_CALLBACK_REGISTRATION
AddedEventRegistration
;
189
PH_CALLBACK_REGISTRATION
ModifiedEventRegistration
;
190
PH_CALLBACK_REGISTRATION
RemovedEventRegistration
;
191
PH_CALLBACK_REGISTRATION
UpdatedEventRegistration
;
192
193
HWND
WindowHandle
;
194
// end_phapppub
195
196
union
197
{
198
PH_MODULE_LIST_CONTEXT
ListContext
;
199
struct
200
{
201
HWND
Private
;
// phapppub
202
HWND
TreeNewHandle
;
// phapppub
203
}
PublicUse
;
204
};
205
BOOLEAN
NeedsRedraw
;
206
NTSTATUS
LastRunStatus
;
207
PPH_STRING
ErrorMessage
;
208
// begin_phapppub
209
}
PH_MODULES_CONTEXT
, *
PPH_MODULES_CONTEXT
;
210
// end_phapppub
211
212
#define WM_PH_HANDLE_ADDED (WM_APP + 221)
213
#define WM_PH_HANDLE_MODIFIED (WM_APP + 222)
214
#define WM_PH_HANDLE_REMOVED (WM_APP + 223)
215
#define WM_PH_HANDLES_UPDATED (WM_APP + 224)
216
217
// begin_phapppub
218
typedef
struct
_PH_HANDLES_CONTEXT
219
{
220
PPH_HANDLE_PROVIDER
Provider
;
221
PH_PROVIDER_REGISTRATION
ProviderRegistration
;
222
PH_CALLBACK_REGISTRATION
AddedEventRegistration
;
223
PH_CALLBACK_REGISTRATION
ModifiedEventRegistration
;
224
PH_CALLBACK_REGISTRATION
RemovedEventRegistration
;
225
PH_CALLBACK_REGISTRATION
UpdatedEventRegistration
;
226
227
HWND
WindowHandle
;
228
// end_phapppub
229
230
union
231
{
232
PH_HANDLE_LIST_CONTEXT
ListContext
;
233
struct
234
{
235
HWND
Private
;
// phapppub
236
HWND
TreeNewHandle
;
// phapppub
237
}
PublicUse
;
238
};
239
BOOLEAN
NeedsRedraw
;
240
BOOLEAN
SelectedHandleProtected
;
241
BOOLEAN
SelectedHandleInherit
;
242
NTSTATUS
LastRunStatus
;
243
PPH_STRING
ErrorMessage
;
244
// begin_phapppub
245
}
PH_HANDLES_CONTEXT
, *
PPH_HANDLES_CONTEXT
;
246
// end_phapppub
247
248
// begin_phapppub
249
typedef
struct
_PH_MEMORY_CONTEXT
250
{
251
HANDLE
ProcessId
;
252
HWND
WindowHandle
;
253
// end_phapppub
254
255
union
256
{
257
PH_MEMORY_LIST_CONTEXT
ListContext
;
258
struct
259
{
260
HWND
Private
;
// phapppub
261
HWND
TreeNewHandle
;
// phapppub
262
}
PublicUse
;
263
};
264
PH_MEMORY_ITEM_LIST
MemoryItemList
;
265
BOOLEAN
MemoryItemListValid
;
266
NTSTATUS
LastRunStatus
;
267
PPH_STRING
ErrorMessage
;
268
// begin_phapppub
269
}
PH_MEMORY_CONTEXT
, *
PPH_MEMORY_CONTEXT
;
270
// end_phapppub
271
272
#define WM_PH_STATISTICS_UPDATE (WM_APP + 231)
273
274
typedef
struct
_PH_STATISTICS_CONTEXT
275
{
276
PH_CALLBACK_REGISTRATION
ProcessesUpdatedRegistration
;
277
278
HWND
WindowHandle
;
279
BOOLEAN
Enabled
;
280
HANDLE
ProcessHandle
;
281
}
PH_STATISTICS_CONTEXT
, *
PPH_STATISTICS_CONTEXT
;
282
283
#define WM_PH_PERFORMANCE_UPDATE (WM_APP + 241)
284
285
typedef
struct
_PH_PERFORMANCE_CONTEXT
286
{
287
PH_CALLBACK_REGISTRATION
ProcessesUpdatedRegistration
;
288
289
HWND
WindowHandle
;
290
291
PH_GRAPH_STATE
CpuGraphState
;
292
PH_GRAPH_STATE
PrivateGraphState
;
293
PH_GRAPH_STATE
IoGraphState
;
294
295
HWND
CpuGraphHandle
;
296
HWND
PrivateGraphHandle
;
297
HWND
IoGraphHandle
;
298
}
PH_PERFORMANCE_CONTEXT
, *
PPH_PERFORMANCE_CONTEXT
;
299
300
#endif
ProcessHacker
include
procprpp.h
Generated by
1.8.2