#include "precomp.h"
#include "dbt.h"
#include "ntdddisk.h"
#include "ntuser.h"
#include <regstr.h>
Go to the source code of this file.
Defines | |
#define | ID_NLS 0 |
#define | ID_POWER 1 |
#define | ID_MEDIACHANGE 2 |
#define | ID_NETDEVCHANGE 3 |
#define | ID_NUM_EVENTS 4 |
#define | SC_BSM_EVENT_NAME L"ScNetDrvMsg" |
Typedefs | |
typedef BOOL(* | PFNPROCESSCREATE )(DWORD, DWORD, ULONG_PTR, DWORD) |
Functions | |
HANDLE | CsrQueryApiPort (VOID) |
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) |
ULONG | SrvLogon (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
ULONG | SrvRegisterServicesProcess (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
ULONG | SrvActivateDebugger (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
ULONG | SrvGetThreadConsoleDesktop (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
ULONG | SrvDeviceEvent (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
ULONG | SrvRegisterLogonProcess (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
ULONG | SrvWin32HeapFail (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
ULONG | SrvWin32HeapStat (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
NTSTATUS | UserServerDllInitialization (PCSR_SERVER_DLL psrvdll) |
NTSTATUS | UserClientConnect (PCSR_PROCESS Process, PVOID ConnectionInformation, PULONG pulConnectionLen) |
VOID | UserHardError (PCSR_THREAD pcsrt, PHARDERROR_MSG pmsg) |
NTSTATUS | UserClientShutdown (PCSR_PROCESS Process, ULONG dwFlags, BOOLEAN fFirstPass) |
VOID | GetTimeouts (VOID) |
VOID | StartRegReadRead (VOID) |
VOID | RegReadApcProcedure (PVOID RegReadApcContext, PIO_STATUS_BLOCK IoStatus) |
VOID | NotificationThread (PVOID) |
VOID | InitializeConsoleAttributes (VOID) |
NTSTATUS | GetThreadConsoleDesktop (DWORD dwThreadId, HDESK *phdesk) |
NTSTATUS | MyRegOpenKey (IN HANDLE hKey, IN LPWSTR lpSubKey, OUT PHANDLE phResult) |
BOOL | BaseSetProcessCreateNotify (PFNPROCESSCREATE pfn) |
VOID | BaseSrvNlsUpdateRegistryCache (PVOID ApcContext, PIO_STATUS_BLOCK pIoStatusBlock) |
NTSTATUS | BaseSrvNlsLogon (BOOL) |
NTSTATUS | WinStationAPIInit (VOID) |
VOID | HandleMediaChangeEvent (VOID) |
DWORD | GetNetworkDrives () |
VOID | HandleRemoteNetDeviceChangeEvent () |
BOOL | CreateBSMEventSD (PSECURITY_DESCRIPTOR *SecurityDescriptor) |
UINT | GetRegIntFromID (HKEY hKey, int KeyID, UINT nDefault) |
BOOL CALLBACK | FindWindowFromThread (HWND hwnd, LPARAM lParam) |
DWORD | GetRipComponent (VOID) |
DWORD | GetDbgTagFlags (int tag) |
DWORD | GetRipPID (VOID) |
DWORD | GetRipFlags (VOID) |
VOID | SetRipFlags (DWORD dwRipFlags, DWORD dwRipPID) |
VOID | SetDbgTag (int tag, DWORD dwBitFlags) |
VOID | UserRtlRaiseStatus (NTSTATUS Status) |
Variables | |
HANDLE | hThreadNotification |
HANDLE | hKeyPriority |
UNICODE_STRING | PriorityValueName |
IO_STATUS_BLOCK | IoStatusRegChange |
ULONG | RegChangeBuffer |
HANDLE | ghNlsEvent |
BOOL | gfLogon |
FARPROC | gpfnAttachRoutine |
HANDLE | ghPowerRequestEvent |
HANDLE | ghMediaRequestEvent |
DWORD | LastNetDrives |
HANDLE | CsrApiPort |
PCSR_API_ROUTINE | UserServerApiDispatchTable [UserpMaxApiNumber-UserpExitWindowsEx] |
BOOLEAN | UserServerApiServerValidTable [UserpMaxApiNumber-UserpExitWindowsEx] |
WORD | gDispatchTableValues |
CONST ALWAYSZERO | gZero |
|
Definition at line 38 of file server/server.c. Referenced by NotificationThread(). |
|
Definition at line 39 of file server/server.c. Referenced by NotificationThread(). |
|
Definition at line 36 of file server/server.c. Referenced by NotificationThread(). |
|
Definition at line 41 of file server/server.c. Referenced by NotificationThread(). |
|
Definition at line 37 of file server/server.c. Referenced by NotificationThread(). |
|
Definition at line 46 of file server/server.c. Referenced by NotificationThread(). |
|
Definition at line 162 of file server/server.c. |
|
Referenced by UserServerDllInitialization(). |
|
Referenced by SrvLogon(). |
|
Referenced by NotificationThread(). |
|
Definition at line 705 of file server/server.c. References BOOL, BYTE, FALSE, NT_SUCCESS, NTSTATUS(), NULL, RtlAddAccessAllowedAce(), RtlAllocateAndInitializeSid(), RtlCreateAcl(), RtlCreateSecurityDescriptor(), RtlFreeSid(), RtlLengthSid(), RtlSetDaclSecurityDescriptor(), Status, TRUE, and WorldSid. Referenced by NotificationThread().
|
|
|
|
Definition at line 1255 of file server/server.c. References BOOL, GetWindow(), NULL, and TRUE. Referenced by BoostHardError(), GetHardErrorText(), and ThreadShutdownNotify().
|
|
Definition at line 1273 of file server/server.c. References DWORD.
|
|
Definition at line 549 of file server/server.c. References DWORD, NT_SUCCESS, NtQueryInformationProcess(), and NULL. Referenced by HandleRemoteNetDeviceChangeEvent().
|
|
Definition at line 1029 of file server/server.c. References BOOL, BYTE, DWORD, FALSE, ghModuleWin, NT_SUCCESS, NtQueryValueKey(), NTSTATUS(), NULL, RtlInitUnicodeString(), RtlLoadStringOrError(), RtlUnicodeStringToInteger(), Status, and UINT. Referenced by GetTimeouts().
|
|
Definition at line 1271 of file server/server.c. References DWORD.
|
|
Definition at line 1280 of file server/server.c. References DWORD, and gdwRIPFlags.
|
|
Definition at line 1279 of file server/server.c. References DWORD.
|
|
Definition at line 3139 of file server/private.c. References CONSOLE_FROMTHREADPERPROCESSDATA, _CONSOLE_PER_PROCESS_DATA::ConsoleHandle, _CONSOLE_INFORMATION::hDesk, NT_SUCCESS, NTSTATUS(), NULL, PCONSOLE_PER_PROCESS_DATA, RevalidateConsole(), Status, and UnlockConsole(). Referenced by SrvGetThreadConsoleDesktop().
|
|
Definition at line 1068 of file server/server.c. References CMSHUNGAPPTIMEOUT, gCmsHungAppTimeout, gCmsWaitToKillTimeout, gdwHungToKillCount, gdwProcessTerminateTimeout, gdwServicesWaitToKillTimeout, GetRegIntFromID(), gfAutoEndTask, L, MyRegOpenKey(), NT_SUCCESS, NtClose(), NTSTATUS(), NULL, PROCESSTERMINATETIMEOUT, RtlOpenCurrentUser(), Status, and VOID(). Referenced by SrvLogon().
|
|
Definition at line 479 of file server/server.c. References BOOL, BroadcastSystemMessage(), DWORD, NT_SUCCESS, NTSTATUS(), NtUserCallNoParam(), NtUserSetInformationThread(), NULL, Status, and VOID(). Referenced by NotificationThread().
|
|
Definition at line 589 of file server/server.c. References BroadcastSystemMessage(), DWORD, GetNetworkDrives(), LastNetDrives, NT_SUCCESS, NtUserSetInformationThread(), and NULL. Referenced by NotificationThread().
|
|
|
Definition at line 1635 of file srvinit.c. References NtOpenKey(), NULL, and RtlInitUnicodeString(). Referenced by GetRegistryValues(), and GetTimeouts().
|
|
Definition at line 881 of file server/server.c. References BaseSrvNlsUpdateRegistryCache(), CreateBSMEventSD(), FALSE, gfLogon, ghMediaRequestEvent, ghNlsEvent, ghPowerRequestEvent, gSessionId, HandleMediaChangeEvent(), HandleRemoteNetDeviceChangeEvent(), hThreadNotification, ID_MEDIACHANGE, ID_NETDEVCHANGE, ID_NLS, ID_NUM_EVENTS, ID_POWER, L, MAX_SESSION_PATH, NT_SUCCESS, NtCreateEvent(), NtResetEvent(), NtSetInformationThread(), NTSTATUS(), NtUserCallNoParam(), NtWaitForMultipleObjects(), NULL, RtlInitUnicodeString(), SC_BSM_EVENT_NAME, SESSION_ROOT, StartRegReadRead(), Status, TRUE, and VOID(). Referenced by UserServerDllInitialization().
|
|
Definition at line 387 of file server/server.c. References BYTE, DWORD, FALSE, hKeyPriority, IoStatusRegChange, L, NT_SUCCESS, NtNotifyChangeKey(), NtQueryValueKey(), NtSetSystemInformation(), NULL, RegChangeBuffer, RegReadApcProcedure(), RtlInitUnicodeString(), Status, and TRUE. Referenced by RegReadApcProcedure(), and StartRegReadRead().
|
|
Definition at line 1290 of file server/server.c. References VOID().
|
|
Definition at line 1282 of file server/server.c. References DWORD, gdwRIPFlags, RIPF_VALIDUSERFLAGS, and VOID().
|
|
Definition at line 28 of file w32/ntuser/server/debug.c. References ASSERT, _ACTIVATEDEBUGGERMSG::ClientId, FALSE, gpfnAttachRoutine, NT_SUCCESS, NtAlertThread(), NTSTATUS(), NULL, RtlRemoteCall(), Status, and TRUE.
|
|
Definition at line 37 of file instdev.c. References _DEVICEEVENTMSG::dwFlags, _DEVICEEVENTMSG::dwResult, EXCEPTION_EXECUTE_HANDLER, _DEVICEEVENTMSG::hWnd, IsWindow(), _DEVICEEVENTMSG::lParam, NT_SUCCESS, NTSTATUS(), NtUserSetInformationThread(), NULL, PostMessage(), SendMessageTimeout(), Status, and _DEVICEEVENTMSG::wParam.
|
|
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 1235 of file server/server.c. References _GETTHREADCONSOLEDESKTOPMSG::dwThreadId, GetThreadConsoleDesktop(), _GETTHREADCONSOLEDESKTOPMSG::hdeskConsole, and PGETTHREADCONSOLEDESKTOPMSG.
|
|
Definition at line 1121 of file server/server.c. References ASSERT, BaseSrvNlsLogon(), FALSE, _LOGONMSG::fLogon, GetTimeouts(), gfLogon, ghNlsEvent, InitializeConsoleAttributes(), LdrFlushAlternateResourceModules(), NT_SUCCESS, NtSetEvent(), NTSTATUS(), NULL, PLOGONMSG, Status, and TRUE.
|
|
Definition at line 1179 of file server/server.c. References DWORD, and gIdLogon.
|
|
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 1198 of file server/server.c. References _WIN32HEAPFAILMSG::bFail, and PWIN32HEAPFAILMSG.
|
|
Definition at line 1214 of file server/server.c. References BOOL, BYTE, _WIN32HEAPSTATMSG::dwLen, _WIN32HEAPSTATMSG::dwMaxTag, DWORD, _WIN32HEAPSTATMSG::phs, PWIN32HEAPSTATMSG, and TRUE.
|
|
Definition at line 431 of file server/server.c. References FALSE, hKeyPriority, L, NT_SUCCESS, NtOpenKey(), NULL, RegReadApcProcedure(), and RtlInitUnicodeString(). Referenced by NotificationThread().
|
|
Definition at line 357 of file server/server.c. References CsrApiPort, CsrQueryApiPort(), gDispatchTableValues, NTSTATUS(), NtUserProcessConnect(), NtUserSetInformationThread(), NULL, and USERCONNECT. Referenced by UserServerDllInitialization().
|
|
|
|
Definition at line 1662 of file w32/ntuser/server/harderr.c. References NULL, UserHardErrorEx(), and VOID(). Referenced by UserServerDllInitialization().
|
|
Definition at line 1296 of file server/server.c. References RtlRaiseStatus(), Status, and VOID().
|
|
Definition at line 192 of file server/server.c. References BaseSetProcessCreateNotify(), BOOL, EnterCrit, FALSE, gcsUserSrv, gdwRIPFlags, gheventCancel, gheventCancelled, ghMediaRequestEvent, ghModuleWin, ghPowerRequestEvent, gpfnAttachRoutine, gpwszaSUCCESS, gpwszaSYSTEM_ERROR, gpwszaSYSTEM_INFORMATION, gpwszaSYSTEM_WARNING, hThreadNotification, ISTS, LeaveCrit, NotificationThread(), NT_SUCCESS, NtCreateEvent(), NTSTATUS(), NtUserInitialize(), NtUserNotifyProcessCreate(), NULL, RIPF_DEFAULT, RtlCreateUserThread(), RtlGetNtGlobalFlags(), RtlInitializeCriticalSection(), RtlLoadStringOrError(), Status, TRUE, UserClientConnect(), UserClientShutdown(), USERCURRENTVERSION, UserHardError(), UserpMaxApiNumber, UserServerApiDispatchTable, UserServerApiServerValidTable, and WinStationAPIInit().
|
|
Definition at line 212 of file api.c. References BOOL, DBGHYD, FALSE, gSessionId, L, NT_SUCCESS, NtResumeThread(), NtSetInformationThread(), NTSTATUS(), NULL, RtlCreateUserThread(), Status, TerminalServerRequestThread(), ThreadHandle, and TRUE. Referenced by UserServerDllInitialization().
|
|
Definition at line 54 of file server/server.c. |
|
Definition at line 355 of file server/server.c. |
|
Definition at line 31 of file server/server.c. Referenced by NotificationThread(), and SrvLogon(). |
|
Definition at line 34 of file server/server.c. Referenced by NotificationThread(), and UserServerDllInitialization(). |
|
Definition at line 30 of file server/server.c. Referenced by NotificationThread(), and SrvLogon(). |
|
Definition at line 33 of file server/server.c. Referenced by NotificationThread(), and UserServerDllInitialization(). |
|
Definition at line 32 of file server/server.c. Referenced by SrvActivateDebugger(), and UserServerDllInitialization(). |
|
Definition at line 1310 of file server/server.c. |
|
Definition at line 26 of file server/server.c. Referenced by RegReadApcProcedure(), and StartRegReadRead(). |
|
Definition at line 25 of file server/server.c. Referenced by NotificationThread(), and UserServerDllInitialization(). |
|
Definition at line 28 of file server/server.c. Referenced by RegReadApcProcedure(). |
|
Definition at line 51 of file server/server.c. Referenced by HandleRemoteNetDeviceChangeEvent(). |
|
Definition at line 27 of file server/server.c. |
|
Definition at line 29 of file server/server.c. Referenced by RegReadApcProcedure(). |
|
Initial value:
Definition at line 107 of file server/server.c. Referenced by UserServerDllInitialization(). |
|
Initial value: Definition at line 120 of file server/server.c. Referenced by UserServerDllInitialization(). |