#include "precomp.h"
Go to the source code of this file.
Defines | |
#define | BEGIN_LPC_RECV(API) |
#define | END_LPC_RECV() |
#define | CCHMSGMAX 256 |
#define | CCHBODYMAX 512 |
#define | CSR_THREAD_SHUTDOWNSKIP 0x00000008 |
#define | ESMH_CANCELEVENT 0 |
#define | ESMH_THREAD 1 |
#define | ESMH_HANDLECOUNT 2 |
Functions | |
BOOL | WowExitTask (PCSR_THREAD pcsrt) |
NTSTATUS | UserClientShutdown (PCSR_PROCESS pcsrp, ULONG dwFlags, BOOLEAN fFirstPass) |
NTSTATUS | _ExitWindowsEx (PCSR_THREAD pcsrt, UINT dwFlags, DWORD dwReserved) |
VOID CALLBACK | WMCSCallback (HWND hwnd, UINT uMsg, ULONG_PTR dwData, LRESULT lResult) |
HWND | GetInputWindow (PCSR_THREAD pcsrt, HWND hwnd) |
void | GetApplicationText (HWND hwnd, HANDLE hThread, WCHAR *pwcText, UINT uLen) |
DWORD | ThreadShutdownNotify (DWORD dwClientFlags, ULONG_PTR dwThread, LPARAM lParam) |
void | SetEndTaskDlgStatus (ENDDLGPARAMS *pedp, HWND hwndDlg, UINT uStrId, BOOL fInit) |
INT_PTR APIENTRY | EndTaskDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) |
BOOL | _EndTask (HWND hwnd, BOOL fShutdown, BOOL fMeanKill) |
DWORD | InternalWaitCancel (HANDLE handle, DWORD dwMilliseconds) |
HANDLE | InternalCreateCallbackThread (HANDLE hProcess, ULONG_PTR lpfn, ULONG_PTR dwData) |
ULONG | SrvExitWindowsEx (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
ULONG | SrvEndTask (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
BOOL | IsPrivileged (PPRIVILEGE_SET ppSet) |
ULONG | SrvRegisterServicesProcess (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
|
Value: Definition at line 16 of file server/exitwin.c. Referenced by SrvExitWindowsEx(), and SrvRegisterServicesProcess(). |
|
Definition at line 31 of file server/exitwin.c. Referenced by EndTaskDlgProc(), and ThreadShutdownNotify(). |
|
Definition at line 30 of file server/exitwin.c. |
|
Definition at line 33 of file server/exitwin.c. Referenced by UserClientShutdown(). |
|
Value:
Definition at line 26 of file server/exitwin.c. Referenced by SrvExitWindowsEx(), and SrvRegisterServicesProcess(). |
|
Referenced by ThreadShutdownNotify(). |
|
Referenced by ThreadShutdownNotify(). |
|
Referenced by ThreadShutdownNotify(). |
|
Definition at line 1601 of file server/exitwin.c. References BOOL, DebugPort, DWORD, FALSE, GetWindowLongPtr(), GetWindowThreadProcessId(), ghModuleWin, gIdLogon, ISTS, NT_SUCCESS, NtQueryInformationProcess(), NTSTATUS(), NtTerminateProcess(), NtUserSetInformationThread(), NULL, PostMessage(), ServerLoadString, Status, ThreadShutdownNotify(), TRUE, TSN_APPSAYSNOTOK, TSN_USERSAYSCANCEL, WMCS_ENDTASK, and WowExitTask(). Referenced by SrvEndTask().
|
|
Definition at line 50 of file server/exitwin.c. References dwFlags, EnterCrit, FALSE, gdwThreadEndSession, gheventCancel, gheventCancelled, gIdLogon, LeaveCrit, NT_SUCCESS, NtClearEvent(), NtSetEvent(), NTSTATUS(), NtUserSetInformationThread(), NtWaitForSingleObject(), NULL, RtlNtStatusToDosError(), Status, and TRUE. Referenced by SrvExitWindowsEx().
|
|
Definition at line 1312 of file server/exitwin.c. References APIENTRY, BeginPaint, BHE_TEST, BOOL, BoostHardError(), CCHBODYMAX, DestroyWindow, DrawEdge(), DrawIcon(), DWORD, EDPF_HUNG, EDPF_INPUT, EDPF_NODLG, EDPF_RESPONSE, EDPF_WAIT, ETD_XICON, ETD_YICON, FALSE, FillRect(), gdwHungToKillCount, GetApplicationText(), GetClassLongPtr(), GetDC, GetInputWindow(), GetProp(), GetSystemMetrics(), GetWindowLongPtr(), GetWindowText(), ghModuleWin, ICON_PROP_NAME, IDB_WARNING, IDI_CONSOLE, IDT_CHECKAPPSTATE, IDT_PROGRESS, InflateRect(), msg, NULL, ReleaseDC(), SetEndTaskDlgStatus(), SetWindowLongPtr(), SetWindowPos, SetWindowText(), TRUE, UINT, and WMCS_CONSOLE. Referenced by ThreadShutdownNotify().
|
|
Definition at line 728 of file server/exitwin.c. References GetWindowText(), NtUserQueryInformationThread(), and NULL. Referenced by EndTaskDlgProc(), and ThreadShutdownNotify().
|
|
Definition at line 698 of file server/exitwin.c. References DWORD, gCmsHungAppTimeout, GetWindow(), IsWindowEnabled(), NtUserQueryInformationThread(), and NULL. Referenced by EndTaskDlgProc(), and ThreadShutdownNotify().
|
|
Definition at line 1865 of file server/exitwin.c. References DWORD, FALSE, L, LPVOID, NT_SUCCESS, NtClose(), NtOpenProcessToken(), NtQueryInformationToken(), NtSetInformationThread(), NTSTATUS(), NULL, RtlCreateSecurityDescriptor(), RtlSetDaclSecurityDescriptor(), Status, and TRUE. Referenced by CreateCtrlThread(), PropertiesDlgShow(), and WowExitTask().
|
|
Definition at line 1842 of file server/exitwin.c. References DWORD, FALSE, and gheventCancel. Referenced by ConsoleClientShutdown(), and CreateCtrlThread().
|
|
Definition at line 2001 of file server/exitwin.c. References BOOL, FALSE, L, NT_SUCCESS, NtClose(), NtOpenThreadToken(), NtPrivilegeCheck(), NtPrivilegeObjectAuditAlarm(), NTSTATUS(), NULL, RtlInitUnicodeString(), RtlNtStatusToDosError(), SeCaptureSubjectContext(), SeLockSubjectContext(), SePrivilegeCheck(), SePrivilegeObjectAuditAlarm(), SeReleaseSubjectContext(), SeUnlockSubjectContext(), Status, TRUE, and UserMode. Referenced by _RegisterLogonProcess(), InitiateShutdown(), SrvRegisterServicesProcess(), and xxxWrapSendMessageBSM().
|
|
Definition at line 1151 of file server/exitwin.c. References BOOL, _ENDDLGPARAMS::dwClientFlags, _ENDDLGPARAMS::dwFlags, DWORD, EDPF_HUNG, EDPF_WAIT, gCmsHungAppTimeout, gdwHungToKillCount, GetClientRect(), GetDlgItem(), GetSysColor(), GetSystemMetrics(), GetWindowRect(), ghModuleWin, _ENDDLGPARAMS::hbrProgress, IDC_ENDNOW, IDC_STATUSCANCEL, IDC_STATUSMSG, IDT_CHECKAPPSTATE, IDT_PROGRESS, InflateRect(), _ENDDLGPARAMS::iProgressStop, _ENDDLGPARAMS::iProgressWidth, MapWindowPoints(), NULL, OffsetRect(), _ENDDLGPARAMS::rcBar, _ENDDLGPARAMS::rcEndButton, _ENDDLGPARAMS::rcProgress, SendMessage(), ServerLoadString, SetDlgItemText(), SetFocus, SetForegroundWindow(), SetTimer, SetWindowPos, TRUE, UINT, _ENDDLGPARAMS::uStrId, and WMCS_CONSOLE. Referenced by EndTaskDlgProc().
|
|
Definition at line 1963 of file server/exitwin.c. References _EndTask(), _ENDTASKMSG::dwLastError, _ENDTASKMSG::fForce, _ENDTASKMSG::fShutdown, _ENDTASKMSG::fSuccess, _ENDTASKMSG::hwnd, NtReplyPort(), NULL, and TRUE.
|
|
Definition at line 1950 of file server/exitwin.c. References _ExitWindowsEx(), BEGIN_LPC_RECV, END_LPC_RECV, NT_SUCCESS, and Status.
|
|
Definition at line 2053 of file server/exitwin.c. References BEGIN_LPC_RECV, END_LPC_RECV, EnterCrit, FALSE, gdwServicesProcessId, IsPrivileged(), LeaveCrit, psTcb, and TRUE.
|
|
Definition at line 757 of file server/exitwin.c. References BHE_FORCE, BHE_TEST, BOOL, BoostHardError(), CCHBODYMAX, DestroyWindow, DispatchMessage(), tagWMCSDATA::dwFlags, DWORD, tagWMCSDATA::dwRet, EDPF_HUNG, EDPF_INPUT, EDPF_NODLG, EDPF_RESPONSE, EDPF_WAIT, ENDDLGPARAMS, EndTaskDlgProc(), EnumThreadWindows(), ESMH_CANCELEVENT, ESMH_HANDLECOUNT, ESMH_THREAD, FALSE, FindWindowFromThread(), gCmsHungAppTimeout, GetApplicationText(), GetInputWindow(), GetWindow(), GetWindowLongPtr(), gfAutoEndTask, gheventCancel, ghModuleWin, IDC_ENDNOW, IDD_ENDTASK, IsDialogMessage, ISTS, IsWindowEnabled(), msg, MsgWaitForMultipleObjects(), NtUserQueryInformationThread(), NULL, PeekMessage(), PostMessage(), SendMessageCallback(), SendNotifyMessage(), SetForegroundWindow(), TranslateMessage(), TRUE, TSN_APPSAYSNOTOK, TSN_APPSAYSOK, TSN_NOWINDOW, TSN_USERSAYSCANCEL, TSN_USERSAYSKILL, WMCS_CONSOLE, WMCS_CONTEXTLOGOFF, WMCS_ENDTASK, WMCS_EXIT, WMCS_NODLGIFHUNG, WMCS_NORETRY, WMCS_QUERYEND, WMCSCallback(), WMCSD_IGNORE, WMCSD_REPLY, WMCSDATA, WMCSR_ALLOWSHUTDOWN, WMCSR_CANCEL, WMCSR_DONE, and WowExitTask(). Referenced by _EndTask(), CreateCtrlThread(), and UserClientShutdown().
|
|
Definition at line 219 of file server/exitwin.c. References BHE_FORCE, BOOL, BoostHardError(), CSR_THREAD_SHUTDOWNSKIP, DebugPort, dwFlags, DWORD, FALSE, gdwProcessTerminateTimeout, gdwThreadEndSession, gSessionId, ISTS, NT_SUCCESS, NtQueryInformationProcess(), NTSTATUS(), NtTerminateProcess(), NtUserQueryInformationThread(), NtUserSetInformationThread(), NtWaitForSingleObject(), NULL, SHUTDOWN_CANCEL, SHUTDOWN_KNOWN_PROCESS, SHUTDOWN_UNKNOWN_PROCESS, Status, ThreadShutdownNotify(), TRUE, TSN_APPSAYSNOTOK, TSN_APPSAYSOK, TSN_NOWINDOW, TSN_USERSAYSCANCEL, TSN_USERSAYSKILL, UINT, WMCS_CONTEXTLOGOFF, WMCS_EXIT, WMCS_LOGOFF, WMCS_NODLGIFHUNG, WMCS_NORETRY, and WMCS_QUERYEND. Referenced by UserServerDllInitialization().
|
|
Definition at line 676 of file server/exitwin.c. References tagWMCSDATA::dwFlags, DWORD, tagWMCSDATA::dwRet, PWMCSDATA, VOID(), WMCSD_IGNORE, and WMCSD_REPLY. Referenced by ThreadShutdownNotify().
|
|
Definition at line 1791 of file server/exitwin.c. References BOOL, FALSE, gheventCancel, InternalCreateCallbackThread(), NT_SUCCESS, NtClose(), NTSTATUS(), NtTerminateProcess(), NtUserQueryInformationThread(), NULL, Status, and TRUE. Referenced by _EndTask(), and ThreadShutdownNotify().
|