#include "precomp.h"
#include <ndk/psfuncs.h>
Go to the source code of this file.
◆ NTOS_MODE_USER
◆ IsCriticalProcess()
Definition at line 68 of file endproc.c.
69{
71 ULONG BreakOnTermination;
72
73
76
77
78
79
80
81
82
85 &BreakOnTermination,
88
91
93}
#define NT_SUCCESS(StatCode)
@ ProcessBreakOnTermination
_In_ BOOL _In_ HANDLE hProcess
NTSTATUS NTAPI NtQueryInformationProcess(_In_ HANDLE ProcessHandle, _In_ PROCESSINFOCLASS ProcessInformationClass, _Out_ PVOID ProcessInformation, _In_ ULONG ProcessInformationLength, _Out_opt_ PULONG ReturnLength)
Referenced by ProcessPage_OnEndProcess(), ProcessPage_OnEndProcessTree(), and ShutdownProcessTreeHelper().
◆ ProcessPage_OnEndProcess()
Definition at line 15 of file endproc.c.
16{
20 WCHAR strErrorText[260];
21
23
24 if (dwProcessId == 0)
25 return;
26
28
29
31 {
36 return;
37 }
38
39
43 {
45 return;
46 }
47
48
50 {
54 return;
55 }
56
57
59 {
63 }
64
66}
#define IDS_MSG_CLOSESYSTEMPROCESS
#define IDS_MSG_WARNINGTERMINATING
#define IDS_MSG_TASKMGRWARNING
#define IDS_MSG_UNABLETERMINATEPRO
BOOL WINAPI TerminateProcess(IN HANDLE hProcess, IN UINT uExitCode)
HANDLE WINAPI OpenProcess(IN DWORD dwDesiredAccess, IN BOOL bInheritHandle, IN DWORD dwProcessId)
BOOL IsCriticalProcess(HANDLE hProcess)
#define PROCESS_TERMINATE
#define PROCESS_QUERY_INFORMATION
TCHAR szTitle[MAX_LOADSTRING]
DWORD GetSelectedProcessId(void)
BOOL ConfirmMessageBox(HWND hWnd, LPCWSTR Text, LPCWSTR Title, UINT Type)
LPWSTR GetLastErrorText(LPWSTR lpszBuf, DWORD dwSize)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
Referenced by ApplicationPageWndProc(), ProcessPageOnNotify(), ProcessPageWndProc(), and TaskManagerWndProc().
◆ ProcessPage_OnEndProcessTree()
void ProcessPage_OnEndProcessTree |
( |
void |
| ) |
|
Definition at line 146 of file endproc.c.
147{
151 WCHAR strErrorText[260];
152
154
155 if (dwProcessId == 0)
156 return;
157
159
160
162 {
167 return;
168 }
169
173 {
175 return;
176 }
177
179 {
183 return;
184 }
185
187 {
191 }
192
194}
BOOL ShutdownProcessTree(HANDLE hParentProcess, DWORD dwParentPID)
Referenced by TaskManagerWndProc().
◆ ShutdownProcessTree()
Definition at line 131 of file endproc.c.
132{
135
136 if (!hSnapshot)
137 {
139 }
140
143 return bResult;
144}
BOOL ShutdownProcessTreeHelper(HANDLE hSnapshot, HANDLE hParentProcess, DWORD dwParentPID)
#define TH32CS_SNAPPROCESS
Referenced by ProcessPage_OnEndProcessTree().
◆ ShutdownProcessTreeHelper()