ReactOS 0.4.16-dev-297-gc569aee
|
#include "csrmsg.h"
Go to the source code of this file.
Classes | |
struct | _CSR_NT_SESSION |
struct | _CSR_PROCESS |
struct | _CSR_THREAD |
struct | _CSR_WAIT_BLOCK |
struct | _CSR_SERVER_DLL |
Macros | |
#define | CSR_CSRSS_SECTION_SIZE 65536 |
#define | CsrGetClientThread() ((PCSR_THREAD)(NtCurrentTeb()->CsrClientThread)) |
#define | CsrProcessPriorityFlags |
#define | CSR_API(n) |
#define | CSR_SERVER_DLL_INIT(n) NTSTATUS NTAPI n(IN PCSR_SERVER_DLL LoadedServerDll) |
Enumerations | |
enum | _CSR_PROCESS_FLAGS { CsrProcessTerminating = 0x1 , CsrProcessSkipShutdown = 0x2 , CsrProcessNormalPriority = 0x10 , CsrProcessIdlePriority = 0x20 , CsrProcessHighPriority = 0x40 , CsrProcessRealtimePriority = 0x80 , CsrProcessCreateNewGroup = 0x100 , CsrProcessTerminated = 0x200 , CsrProcessLastThreadTerminated = 0x400 , CsrProcessIsConsoleApp = 0x800 } |
enum | _CSR_THREAD_FLAGS { CsrThreadAlertable = 0x1 , CsrThreadInTermination = 0x2 , CsrThreadTerminated = 0x4 , CsrThreadIsServerThread = 0x10 } |
enum | _SHUTDOWN_RESULT { CsrShutdownCsrProcess = 1 , CsrShutdownNonCsrProcess , CsrShutdownCancelled } |
enum | _CSR_SHUTDOWN_FLAGS { CsrShutdownSystem = 4 , CsrShutdownOther = 8 } |
enum | _CSR_DEBUG_FLAGS { CsrDebugOnlyThisProcess = 1 , CsrDebugProcessChildren = 2 } |
enum | _CSR_REPLY_CODE { CsrReplyImmediately = 0 , CsrReplyPending = 1 , CsrReplyDeadClient = 2 , CsrReplyAlreadySent = 3 } |
#define CsrGetClientThread | ( | ) | ((PCSR_THREAD)(NtCurrentTeb()->CsrClientThread)) |
#define CsrProcessPriorityFlags |
typedef struct _CSR_NT_SESSION CSR_NT_SESSION |
typedef struct _CSR_PROCESS CSR_PROCESS |
typedef enum _CSR_PROCESS_FLAGS CSR_PROCESS_FLAGS |
typedef enum _CSR_REPLY_CODE CSR_REPLY_CODE |
typedef struct _CSR_SERVER_DLL CSR_SERVER_DLL |
typedef struct _CSR_THREAD CSR_THREAD |
typedef enum _CSR_THREAD_FLAGS CSR_THREAD_FLAGS |
typedef struct _CSR_WAIT_BLOCK CSR_WAIT_BLOCK |
typedef NTSTATUS(NTAPI * PCSR_API_ROUTINE) (IN OUT PCSR_API_MESSAGE ApiMessage, IN OUT PCSR_REPLY_CODE ReplyCode OPTIONAL) |
typedef VOID(NTAPI * PCSR_DISCONNECT_CALLBACK) (IN PCSR_PROCESS CsrProcess) |
typedef VOID(NTAPI * PCSR_HARDERROR_CALLBACK) (IN PCSR_THREAD CsrThread, IN PHARDERROR_MSG HardErrorMessage) |
typedef NTSTATUS(NTAPI * PCSR_NEWPROCESS_CALLBACK) (IN PCSR_PROCESS Parent, IN PCSR_PROCESS CsrProcess) |
typedef struct _CSR_NT_SESSION * PCSR_NT_SESSION |
typedef struct _CSR_PROCESS * PCSR_PROCESS |
typedef enum _CSR_DEBUG_FLAGS * PCSR_PROCESS_DEBUG_FLAGS |
typedef enum _CSR_PROCESS_FLAGS * PCSR_PROCESS_FLAGS |
typedef enum _CSR_REPLY_CODE * PCSR_REPLY_CODE |
typedef struct _CSR_SERVER_DLL * PCSR_SERVER_DLL |
typedef NTSTATUS(NTAPI * PCSR_SERVER_DLL_INIT_CALLBACK) (IN PCSR_SERVER_DLL LoadedServerDll) |
typedef enum _CSR_SHUTDOWN_FLAGS * PCSR_SHUTDOWN_FLAGS |
typedef ULONG(NTAPI * PCSR_SHUTDOWNPROCESS_CALLBACK) (IN PCSR_PROCESS CsrProcess, IN ULONG Flags, IN BOOLEAN FirstPhase) |
typedef struct _CSR_THREAD * PCSR_THREAD |
typedef enum _CSR_THREAD_FLAGS * PCSR_THREAD_FLAGS |
typedef struct _CSR_WAIT_BLOCK * PCSR_WAIT_BLOCK |
typedef enum _SHUTDOWN_RESULT * PSHUTDOWN_RESULT |
typedef enum _SHUTDOWN_RESULT SHUTDOWN_RESULT |
Enumerator | |
---|---|
CsrDebugOnlyThisProcess | |
CsrDebugProcessChildren |
Definition at line 123 of file csrsrv.h.
Definition at line 83 of file csrsrv.h.
Enumerator | |
---|---|
CsrReplyImmediately | |
CsrReplyPending | |
CsrReplyDeadClient | |
CsrReplyAlreadySent |
Definition at line 129 of file csrsrv.h.
Enumerator | |
---|---|
CsrShutdownSystem | |
CsrShutdownOther |
Definition at line 117 of file csrsrv.h.
Enumerator | |
---|---|
CsrThreadAlertable | |
CsrThreadInTermination | |
CsrThreadTerminated | |
CsrThreadIsServerThread |
Definition at line 102 of file csrsrv.h.
Enumerator | |
---|---|
CsrShutdownCsrProcess | |
CsrShutdownNonCsrProcess | |
CsrShutdownCancelled |
Definition at line 110 of file csrsrv.h.
C_ASSERT | ( | FIELD_OFFSET(CSR_SERVER_DLL, SharedSection) | = =0x38 | ) |
PCSR_THREAD NTAPI CsrAddStaticServerThread | ( | IN HANDLE | hThread, |
IN PCLIENT_ID | ClientId, | ||
IN ULONG | ThreadFlags | ||
) |
Definition at line 512 of file thredsup.c.
Referenced by CsrApiPortInitialize(), CsrpCheckRequestThreads(), CsrSbApiPortInitialize(), and GuiInit().
NTSTATUS NTAPI CsrCallServerFromServer | ( | IN PCSR_API_MESSAGE | ReceiveMsg, |
IN OUT PCSR_API_MESSAGE | ReplyMsg | ||
) |
Definition at line 51 of file api.c.
PCSR_THREAD NTAPI CsrConnectToUser | ( | VOID | ) |
Definition at line 1021 of file api.c.
Referenced by CsrApiRequestThread(), and GuiConsoleInputThread().
NTSTATUS NTAPI CsrCreateProcess | ( | IN HANDLE | hProcess, |
IN HANDLE | hThread, | ||
IN PCLIENT_ID | ClientId, | ||
IN PCSR_NT_SESSION | NtSession, | ||
IN ULONG | Flags, | ||
IN PCLIENT_ID | DebugCid | ||
) |
Definition at line 422 of file procsup.c.
Referenced by CSR_API().
Definition at line 569 of file thredsup.c.
Referenced by CreateRemoteThread().
NTSTATUS NTAPI CsrCreateThread | ( | IN PCSR_PROCESS | CsrProcess, |
IN HANDLE | hThread, | ||
IN PCLIENT_ID | ClientId, | ||
IN BOOLEAN | HaveClient | ||
) |
Definition at line 678 of file thredsup.c.
Referenced by CSR_API().
BOOLEAN NTAPI CsrCreateWait | ( | IN PLIST_ENTRY | WaitList, |
IN CSR_WAIT_FUNCTION | WaitFunction, | ||
IN PCSR_THREAD | CsrWaitThread, | ||
IN OUT PCSR_API_MESSAGE | WaitApiMessage, | ||
IN PVOID | WaitContext | ||
) |
Definition at line 209 of file wait.c.
Referenced by DoWriteConsole(), and WaitBeforeReading().
NTSTATUS NTAPI CsrDebugProcess | ( | IN PCSR_PROCESS | CsrProcess | ) |
NTSTATUS NTAPI CsrDebugProcessStop | ( | IN PCSR_PROCESS | CsrProcess | ) |
VOID NTAPI CsrDereferenceProcess | ( | IN PCSR_PROCESS | CsrProcess | ) |
Definition at line 691 of file procsup.c.
Referenced by ConsoleClientShutdown(), CsrThreadRefcountZero(), NonConsoleProcessShutdown(), and UserClientShutdown().
VOID NTAPI CsrDereferenceThread | ( | IN PCSR_THREAD | CsrThread | ) |
Definition at line 776 of file thredsup.c.
Referenced by CsrApiRequestThread(), CsrDereferenceWait(), CsrNotifyWaitBlock(), GuiConsoleInputThread(), and NotifyUserProcessForShutdown().
VOID NTAPI CsrDereferenceWait | ( | IN PLIST_ENTRY | WaitList | ) |
Definition at line 266 of file wait.c.
Referenced by ConioUnpause(), ConSrvCloseHandle(), and PostprocessInput().
Definition at line 735 of file procsup.c.
Referenced by CSR_API(), and CsrApiRequestThread().
NTSTATUS NTAPI CsrDestroyThread | ( | IN PCLIENT_ID | Cid | ) |
Definition at line 814 of file thredsup.c.
Referenced by CsrApiRequestThread().
Definition at line 886 of file thredsup.c.
Referenced by CSR_API().
Definition at line 828 of file procsup.c.
Referenced by FindProcessForShutdown(), and UserExitReactOS().
BOOLEAN NTAPI CsrImpersonateClient | ( | IN PCSR_THREAD | CsrThread | ) |
Definition at line 932 of file procsup.c.
Referenced by BaseSrvIsVdmAllowed(), CheckForGlobalDriveLetter(), ConSrvInitConsole(), CSR_API(), FindProcessForShutdown(), GuiInit(), GuiLoadFrontEnd(), and UserExitReactOS().
NTSTATUS NTAPI CsrLockProcessByClientId | ( | IN HANDLE | Pid, |
OUT PCSR_PROCESS *CsrProcess | OPTIONAL | ||
) |
Referenced by CON_API_NOCONSOLE(), CSR_API(), CsrCreateRemoteThread(), and NotifyUserProcessForShutdown().
Definition at line 965 of file thredsup.c.
Referenced by GetThreadConsoleDesktop().
VOID NTAPI CsrMoveSatisfiedWait | ( | IN PLIST_ENTRY | DestinationList, |
IN PLIST_ENTRY | WaitList | ||
) |
Definition at line 330 of file wait.c.
BOOLEAN NTAPI CsrNotifyWait | ( | IN PLIST_ENTRY | WaitList, |
IN BOOLEAN | NotifyAll, | ||
IN PVOID | WaitArgument1, | ||
IN PVOID | WaitArgument2 | ||
) |
Definition at line 388 of file wait.c.
Referenced by ConioUnpause(), ConSrvCloseHandle(), and PostprocessInput().
Definition at line 1097 of file api.c.
Referenced by CSR_API(), and UserClientConnect().
VOID NTAPI CsrReferenceThread | ( | IN PCSR_THREAD | CsrThread | ) |
Definition at line 1043 of file thredsup.c.
Referenced by NotifyUserProcessForShutdown().
Definition at line 1057 of file procsup.c.
Referenced by BaseSrvIsVdmAllowed(), CheckForGlobalDriveLetter(), ConSrvInitConsole(), CSR_API(), FindProcessForShutdown(), GuiInit(), GuiLoadFrontEnd(), and UserExitReactOS().
Definition at line 1011 of file init.c.
Referenced by _main().
VOID NTAPI CsrSetBackgroundPriority | ( | IN PCSR_PROCESS | CsrProcess | ) |
Definition at line 1107 of file procsup.c.
Referenced by ConSrvSetProcessFocus(), CsrCreateProcess(), and CsrSbCreateSession().
VOID NTAPI CsrSetForegroundPriority | ( | IN PCSR_PROCESS | CsrProcess | ) |
Definition at line 1138 of file procsup.c.
Referenced by ConSrvSetProcessFocus().
Definition at line 1277 of file procsup.c.
Referenced by UserExitReactOS().
EXCEPTION_DISPOSITION NTAPI CsrUnhandledExceptionFilter | ( | IN PEXCEPTION_POINTERS | ExceptionInfo | ) |
Definition at line 643 of file server.c.
Referenced by CsrApiRequestThread(), and CsrLoadServerDll().
NTSTATUS NTAPI CsrUnlockProcess | ( | IN PCSR_PROCESS | CsrProcess | ) |
Definition at line 1410 of file procsup.c.
Referenced by CON_API_NOCONSOLE(), CSR_API(), CsrCreateRemoteThread(), CsrCreateThread(), and NotifyUserProcessForShutdown().
NTSTATUS NTAPI CsrUnlockThread | ( | IN PCSR_THREAD | CsrThread | ) |
Definition at line 1075 of file thredsup.c.
Referenced by GetThreadConsoleDesktop().
BOOLEAN NTAPI CsrValidateMessageBuffer | ( | IN PCSR_API_MESSAGE | ApiMessage, |
IN PVOID * | Buffer, | ||
IN ULONG | ElementCount, | ||
IN ULONG | ElementSize | ||
) |
Definition at line 1430 of file api.c.
Referenced by CON_API(), CON_API_NOCONSOLE(), CSR_API(), and CsrValidateMessageString().
Definition at line 1517 of file api.c.