#include <windows.h>
#include <w32gdip.h>
#include <stddef.h>
#include <ddeml.h>
#include "ddemlp.h"
#include "winuserp.h"
#include "winuserk.h"
#include <dde.h>
#include <ddetrack.h>
#include "kbd.h"
#include <wowuserp.h>
#include <memory.h>
#include <w32err.h>
#include <string.h>
#include "help.h"
#include "user.h"
#include "cscall.h"
#include "strid.h"
#include "csrmsg.h"
#include "globals.h"
Go to the source code of this file.
Classes | |
struct | tagCTXHARDERRORINFO |
struct | _ENDDLGPARAMS |
struct | tagHARDERRORINFO |
struct | tagWMCSDATA |
Defines | |
#define | IDD_ENDTASK 10 |
#define | IDC_STATUSICON 0x100 |
#define | IDC_STATUSMSG 0x101 |
#define | IDC_STATUSCANCEL 0x102 |
#define | IDC_ENDNOW 0x103 |
#define | IDI_CONSOLE 1 |
#define | ETD_XICON 10 |
#define | ETD_YICON 10 |
#define | IDB_WARNING 0x200 |
#define | IDT_CHECKAPPSTATE 0x300 |
#define | IDT_PROGRESS 0x301 |
#define | EDPF_NODLG 0x00000001 |
#define | EDPF_RESPONSE 0x00000002 |
#define | EDPF_HUNG 0x00000004 |
#define | EDPF_WAIT 0x00000008 |
#define | EDPF_INPUT 0x00000010 |
#define | TSN_APPSAYSOK 1 |
#define | TSN_APPSAYSNOTOK 2 |
#define | TSN_USERSAYSKILL 3 |
#define | TSN_USERSAYSCANCEL 4 |
#define | TSN_NOWINDOW 5 |
#define | HEIF_ACTIVE 0x00000001 |
#define | HEIF_NUKED 0x00000002 |
#define | HEIF_ALLOCATEDMSG 0x00000004 |
#define | HEIF_REPLIED 0x00000008 |
#define | HEIF_DEREFTHREAD 0x00000010 |
#define | HEIF_WRONGDESKTOP 0x00000020 |
#define | HEIF_SYSTEMERROR 0x00000040 |
#define | HEIF_VDMERROR 0x00000080 |
#define | BHE_ACTIVATE 0 |
#define | BHE_FORCE 1 |
#define | BHE_TEST 2 |
#define | WMCSD_IGNORE 0x00000001 |
#define | WMCSD_REPLY 0x00000002 |
#define | WMCSD_RECEIVED 0x00000004 |
#define | ServerLoadString(hmod, id, default, allocated) RtlLoadStringOrError((hmod), (id), (default), (allocated), FALSE) |
#define | EnterCrit() RtlEnterCriticalSection(&gcsUserSrv) |
#define | LeaveCrit() RtlLeaveCriticalSection(&gcsUserSrv) |
Typedefs | |
typedef tagCTXHARDERRORINFO | CTXHARDERRORINFO |
typedef tagCTXHARDERRORINFO * | PCTXHARDERRORINFO |
typedef _ENDDLGPARAMS | ENDDLGPARAMS |
typedef tagHARDERRORINFO | HARDERRORINFO |
typedef tagHARDERRORINFO * | PHARDERRORINFO |
typedef tagWMCSDATA | WMCSDATA |
typedef tagWMCSDATA * | PWMCSDATA |
Functions | |
INT_PTR APIENTRY | EndTaskDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) |
BOOL | BoostHardError (ULONG_PTR dwProcessId, DWORD dwCode) |
DWORD | ThreadShutdownNotify (DWORD dwClientFlags, ULONG_PTR dwThread, LPARAM lParam) |
BOOL CALLBACK | FindWindowFromThread (HWND hwnd, LPARAM lParam) |
int | InternalDoEndTaskDialog (TCHAR *pszTitle, HANDLE h, int cSeconds) |
LPWSTR | RtlLoadStringOrError (HANDLE hModule, UINT wID, LPWSTR lpDefault, PBOOL pAllocated, BOOL bAnsi) |
Variables | |
HANDLE | ghModuleWin |
DWORD | gCmsHungAppTimeout |
DWORD | gCmsWaitToKillTimeout |
DWORD | gdwHungToKillCount |
DWORD | gdwServicesProcessId |
DWORD | gdwServicesWaitToKillTimeout |
DWORD | gdwProcessTerminateTimeout |
|
Definition at line 161 of file usersrv.h. Referenced by BoostHardError(), and CreateCtrlThread(). |
|
Definition at line 162 of file usersrv.h. Referenced by BoostHardError(), CreateCtrlThread(), KillProcess(), ThreadShutdownNotify(), UserClientShutdown(), and W32WinStationTerminate(). |
|
Definition at line 163 of file usersrv.h. Referenced by EndTaskDlgProc(), and ThreadShutdownNotify(). |
|
Definition at line 112 of file usersrv.h. Referenced by EndTaskDlgProc(), SetEndTaskDlgStatus(), and ThreadShutdownNotify(). |
|
Definition at line 114 of file usersrv.h. Referenced by EndTaskDlgProc(), and ThreadShutdownNotify(). |
|
Definition at line 110 of file usersrv.h. Referenced by EndTaskDlgProc(), and ThreadShutdownNotify(). |
|
Definition at line 111 of file usersrv.h. Referenced by EndTaskDlgProc(), and ThreadShutdownNotify(). |
|
Definition at line 113 of file usersrv.h. Referenced by EndTaskDlgProc(), SetEndTaskDlgStatus(), and ThreadShutdownNotify(). |
|
|
Definition at line 77 of file usersrv.h. Referenced by EndTaskDlgProc(). |
|
Definition at line 78 of file usersrv.h. Referenced by EndTaskDlgProc(). |
|
Definition at line 151 of file usersrv.h. Referenced by BoostHardError(), and HardErrorHandler(). |
|
Definition at line 153 of file usersrv.h. Referenced by FreePhi(), and UserHardErrorEx(). |
|
Definition at line 155 of file usersrv.h. Referenced by ReplyHardError(), and UserHardErrorEx(). |
|
Definition at line 152 of file usersrv.h. Referenced by BoostHardError(), and HardErrorHandler(). |
|
Definition at line 154 of file usersrv.h. Referenced by ReplyHardError(), and UserHardErrorEx(). |
|
Definition at line 157 of file usersrv.h. Referenced by GetHardErrorText(), and UserHardErrorEx(). |
|
Definition at line 158 of file usersrv.h. Referenced by GetHardErrorText(), and HardErrorHandler(). |
|
Definition at line 156 of file usersrv.h. Referenced by CheckDefaultDesktop(), and HardErrorHandler(). |
|
Definition at line 80 of file usersrv.h. Referenced by EndTaskDlgProc(). |
|
Definition at line 74 of file usersrv.h. Referenced by SetEndTaskDlgStatus(), and ThreadShutdownNotify(). |
|
Definition at line 73 of file usersrv.h. Referenced by SetEndTaskDlgStatus(). |
|
|
|
Definition at line 72 of file usersrv.h. Referenced by SetEndTaskDlgStatus(). |
|
Definition at line 70 of file usersrv.h. Referenced by ThreadShutdownNotify(). |
|
Definition at line 76 of file usersrv.h. Referenced by EndTaskDlgProc(), and InitWindowClass(). |
|
Definition at line 82 of file usersrv.h. Referenced by EndTaskDlgProc(), and SetEndTaskDlgStatus(). |
|
Definition at line 83 of file usersrv.h. Referenced by EndTaskDlgProc(), and SetEndTaskDlgStatus(). |
|
|
|
|
Definition at line 119 of file usersrv.h. Referenced by _EndTask(), ThreadShutdownNotify(), and UserClientShutdown(). |
|
Definition at line 118 of file usersrv.h. Referenced by ThreadShutdownNotify(), and UserClientShutdown(). |
|
Definition at line 122 of file usersrv.h. Referenced by ThreadShutdownNotify(), and UserClientShutdown(). |
|
Definition at line 121 of file usersrv.h. Referenced by _EndTask(), CreateCtrlThread(), ThreadShutdownNotify(), and UserClientShutdown(). |
|
Definition at line 120 of file usersrv.h. Referenced by ThreadShutdownNotify(), and UserClientShutdown(). |
|
Definition at line 174 of file usersrv.h. Referenced by ThreadShutdownNotify(), and WMCSCallback(). |
|
|
|
Definition at line 175 of file usersrv.h. Referenced by ThreadShutdownNotify(), and WMCSCallback(). |
|
Referenced by RemoteDoMessage(). |
|
Referenced by ThreadShutdownNotify(). |
|
Referenced by UserHardErrorEx(). |
|
|
|
|
|
Referenced by WMCSCallback(). |
|
Referenced by ThreadShutdownNotify(). |
|
Definition at line 1906 of file w32/ntuser/server/harderr.c. References BHE_ACTIVATE, BHE_FORCE, BOOL, tagHARDERRORINFO::dwHEIFFlags, DWORD, EnterCrit, EnumThreadWindows(), FALSE, FindWindowFromThread(), gdwHardErrorThreadId, gphiList, HEIF_ACTIVE, HEIF_NUKED, LeaveCrit, NtUserHardErrorControl(), NULL, tagHARDERRORINFO::phiNext, PostThreadMessage(), ReplyHardError(), SetForegroundWindow(), and TRUE. Referenced by CreateCtrlThread(), EndTaskDlgProc(), KillProcess(), ThreadShutdownNotify(), UserClientShutdown(), and W32WinStationTerminate().
|
|
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 1255 of file server/server.c. References BOOL, GetWindow(), NULL, and TRUE. Referenced by BoostHardError(), GetHardErrorText(), and ThreadShutdownNotify().
|
|
|
|
Definition at line 1499 of file w32/ntuser/server/harderr.c. References CHAR, FALSE, LMEM_ZEROINIT, NT_SUCCESS, NTSTATUS(), NULL, RtlFindMessage(), Status, and TRUE. Referenced by GetRegIntFromID(), and UserServerDllInitialization().
|
|
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 127 of file usersrv.h. Referenced by CreateCtrlThread(), GetInputWindow(), GetTimeouts(), SetEndTaskDlgStatus(), and ThreadShutdownNotify(). |
|
Definition at line 128 of file usersrv.h. Referenced by CreateCtrlThread(), and GetTimeouts(). |
|
Definition at line 129 of file usersrv.h. Referenced by EndTaskDlgProc(), GetTimeouts(), and SetEndTaskDlgStatus(). |
|
Definition at line 132 of file usersrv.h. Referenced by GetTimeouts(), and UserClientShutdown(). |
|
Definition at line 130 of file usersrv.h. Referenced by CreateCtrlThread(), and SrvRegisterServicesProcess(). |
|
Definition at line 131 of file usersrv.h. Referenced by CreateCtrlThread(), and GetTimeouts(). |
|
Definition at line 126 of file usersrv.h. Referenced by _EndTask(), EndTaskDlgProc(), GetHardErrorText(), GetRegIntFromID(), InitWindowClass(), SetEndTaskDlgStatus(), ThreadShutdownNotify(), and UserServerDllInitialization(). |