20 WCHAR strErrorText[260];
71 ULONG BreakOnTermination;
99 ProcessEntry.
dwSize =
sizeof(ProcessEntry);
151 WCHAR strErrorText[260];
155 if (dwProcessId == 0)
#define IDS_MSG_CLOSESYSTEMPROCESS
#define IDS_MSG_WARNINGTERMINATING
#define IDS_MSG_TASKMGRWARNING
#define IDS_MSG_UNABLETERMINATEPRO
#define NT_SUCCESS(StatCode)
BOOL WINAPI TerminateProcess(IN HANDLE hProcess, IN UINT uExitCode)
HANDLE WINAPI OpenProcess(IN DWORD dwDesiredAccess, IN BOOL bInheritHandle, IN DWORD dwProcessId)
BOOL ShutdownProcessTreeHelper(HANDLE hSnapshot, HANDLE hParentProcess, DWORD dwParentPID)
void ProcessPage_OnEndProcessTree(void)
BOOL IsCriticalProcess(HANDLE hProcess)
void ProcessPage_OnEndProcess(void)
BOOL ShutdownProcessTree(HANDLE hParentProcess, DWORD dwParentPID)
#define PROCESS_TERMINATE
#define PROCESS_QUERY_INFORMATION
@ ProcessBreakOnTermination
TCHAR szTitle[MAX_LOADSTRING]
_In_ BOOL _In_ HANDLE hProcess
NTSTATUS NTAPI NtQueryInformationProcess(_In_ HANDLE ProcessHandle, _In_ PROCESSINFOCLASS ProcessInformationClass, _Out_ PVOID ProcessInformation, _In_ ULONG ProcessInformationLength, _Out_opt_ PULONG ReturnLength)
DWORD GetSelectedProcessId(void)
DWORD th32ParentProcessID
BOOL ConfirmMessageBox(HWND hWnd, LPCWSTR Text, LPCWSTR Title, UINT Type)
LPWSTR GetLastErrorText(LPWSTR lpszBuf, DWORD dwSize)
#define TH32CS_SNAPPROCESS
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)