Process Hacker
procprpp.h
Go to the documentation of this file.
1 #ifndef PH_PROCPRPP_H
2 #define PH_PROCPRPP_H
3 
5 {
6  WNDPROC OldWndProc;
11 
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 
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;
108 
109 #define PhaAppendCtrlEnter(Text, Enable) ((Enable) ? PhaConcatStrings2((Text), L"\tCtrl+Enter")->Buffer : (Text))
110 
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 
121  _In_ HWND hWnd,
122  _In_ PPH_HANDLE_ITEM_INFO Info
123  );
124 
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 {
160 
162 // end_phapppub
163 
164  union
165  {
167  struct
168  {
169  HWND Private; // phapppub
170  HWND TreeNewHandle; // phapppub
171  } PublicUse;
172  };
173  BOOLEAN NeedsRedraw;
174 // begin_phapppub
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 {
192 
194 // end_phapppub
195 
196  union
197  {
199  struct
200  {
201  HWND Private; // phapppub
202  HWND TreeNewHandle; // phapppub
203  } PublicUse;
204  };
205  BOOLEAN NeedsRedraw;
206  NTSTATUS LastRunStatus;
208 // begin_phapppub
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 {
226 
228 // end_phapppub
229 
230  union
231  {
233  struct
234  {
235  HWND Private; // phapppub
236  HWND TreeNewHandle; // phapppub
237  } PublicUse;
238  };
239  BOOLEAN NeedsRedraw;
242  NTSTATUS LastRunStatus;
244 // begin_phapppub
246 // end_phapppub
247 
248 // begin_phapppub
249 typedef struct _PH_MEMORY_CONTEXT
250 {
251  HANDLE ProcessId;
253 // end_phapppub
254 
255  union
256  {
258  struct
259  {
260  HWND Private; // phapppub
261  HWND TreeNewHandle; // phapppub
262  } PublicUse;
263  };
266  NTSTATUS LastRunStatus;
268 // begin_phapppub
270 // end_phapppub
271 
272 #define WM_PH_STATISTICS_UPDATE (WM_APP + 231)
273 
275 {
277 
279  BOOLEAN Enabled;
282 
283 #define WM_PH_PERFORMANCE_UPDATE (WM_APP + 241)
284 
286 {
288 
290 
294 
299 
300 #endif