27 _In_opt_ PVOID Parameter,
28 _In_opt_ PVOID Context
32 _In_opt_ PVOID Parameter,
33 _In_opt_ PVOID Context
37 _In_opt_ PVOID Parameter,
38 _In_opt_ PVOID Context
42 _In_opt_ PVOID Parameter,
43 _In_opt_ PVOID Context
47 _In_opt_ PVOID Parameter,
48 _In_opt_ PVOID Context
52 _In_opt_ PVOID Parameter,
53 _In_opt_ PVOID Context
57 _In_opt_ PVOID Parameter,
58 _In_opt_ PVOID Context
62 _In_opt_ PVOID Parameter,
63 _In_opt_ PVOID Context
78 _In_ HINSTANCE Instance,
80 _Reserved_ PVOID Reserved
85 case DLL_PROCESS_ATTACH:
122 info->
Description = L
"View and manipulate windows.";
123 info->
Url = L
"http://processhacker.sf.net/forums/viewtopic.php?t=1116";
130 &PluginLoadCallbackRegistration
136 &PluginUnloadCallbackRegistration
148 &PluginMenuItemCallbackRegistration
155 &MainMenuInitializingCallbackRegistration
167 &ProcessMenuInitializingCallbackRegistration
173 &ThreadMenuInitializingCallbackRegistration
189 case DLL_PROCESS_DETACH:
203 _In_opt_ PVOID Parameter,
204 _In_opt_ PVOID Context
211 _In_opt_ PVOID Parameter,
212 _In_opt_ PVOID Context
219 _In_opt_ PVOID Parameter,
220 _In_opt_ PVOID Context
227 _In_ LPTSTR lpszDesktop,
237 _In_opt_ PVOID Parameter,
238 _In_opt_ PVOID Context
243 switch (menuItem->
Id)
264 L
"Display windows for the following desktop:",
265 (PWSTR *)desktopNames->
Items,
306 _In_opt_ PVOID Parameter,
307 _In_opt_ PVOID Context
333 _In_opt_ PVOID Parameter,
334 _In_opt_ PVOID Context
341 _In_opt_ PVOID Parameter,
342 _In_opt_ PVOID Context
350 if (menuInfo->
u.
Process.NumberOfProcesses == 1)
351 processItem = menuInfo->
u.
Process.Processes[0];
369 _In_opt_ PVOID Parameter,
370 _In_opt_ PVOID Context
378 if (menuInfo->
u.
Thread.NumberOfThreads == 1)
379 threadItem = menuInfo->
u.
Thread.Threads[0];
389 L
"Windows", threadItem), insertIndex);