27#define CSR_CSRSS_SECTION_SIZE 65536
77#define CsrGetClientThread() \
78 ((PCSR_THREAD)(NtCurrentTeb()->CsrClientThread))
97#define CsrProcessPriorityFlags (CsrProcessNormalPriority | \
98 CsrProcessIdlePriority | \
99 CsrProcessHighPriority | \
100 CsrProcessRealtimePriority)
177 NTSTATUS NTAPI n(IN OUT PCSR_API_MESSAGE ApiMessage, \
178 IN OUT PCSR_REPLY_CODE ReplyCode OPTIONAL)
255#define CSR_SERVER_DLL_INIT(n) \
256 NTSTATUS NTAPI n(IN PCSR_SERVER_DLL LoadedServerDll)
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING ACPI_OBJECT_LIST ACPI_BUFFER *ReturnObjectBuffer ACPI_DEVICE_INFO **ReturnBuffer ACPI_HANDLE Parent
HANDLE NTAPI CsrQueryApiPort(VOID)
EXCEPTION_DISPOSITION NTAPI CsrUnhandledExceptionFilter(IN PEXCEPTION_POINTERS ExceptionInfo)
NTSTATUS NTAPI CsrLockThreadByClientId(IN HANDLE Tid, OUT PCSR_THREAD *CsrThread)
VOID NTAPI CsrReferenceThread(IN PCSR_THREAD CsrThread)
enum _SHUTDOWN_RESULT SHUTDOWN_RESULT
NTSTATUS NTAPI CsrUnlockProcess(IN PCSR_PROCESS CsrProcess)
NTSTATUS NTAPI CsrCreateRemoteThread(IN HANDLE hThread, IN PCLIENT_ID ClientId)
BOOLEAN NTAPI CsrValidateMessageBuffer(IN PCSR_API_MESSAGE ApiMessage, IN PVOID *Buffer, IN ULONG ElementCount, IN ULONG ElementSize)
BOOLEAN NTAPI CsrImpersonateClient(IN PCSR_THREAD CsrThread)
NTSTATUS NTAPI CsrDestroyProcess(IN PCLIENT_ID Cid, IN NTSTATUS ExitStatus)
enum _CSR_REPLY_CODE CSR_REPLY_CODE
struct _CSR_SERVER_DLL CSR_SERVER_DLL
ULONG(NTAPI * PCSR_SHUTDOWNPROCESS_CALLBACK)(IN PCSR_PROCESS CsrProcess, IN ULONG Flags, IN BOOLEAN FirstPhase)
NTSTATUS NTAPI CsrCreateThread(IN PCSR_PROCESS CsrProcess, IN HANDLE hThread, IN PCLIENT_ID ClientId, IN BOOLEAN HaveClient)
BOOLEAN NTAPI CsrRevertToSelf(VOID)
VOID NTAPI CsrDereferenceWait(IN PLIST_ENTRY WaitList)
VOID NTAPI CsrSetForegroundPriority(IN PCSR_PROCESS CsrProcess)
NTSTATUS NTAPI CsrDestroyThread(IN PCLIENT_ID Cid)
BOOLEAN(NTAPI * CSR_WAIT_FUNCTION)(IN PLIST_ENTRY WaitList, IN PCSR_THREAD WaitThread, IN PCSR_API_MESSAGE WaitApiMessage, IN PVOID WaitContext, IN PVOID WaitArgument1, IN PVOID WaitArgument2, IN ULONG WaitFlags)
VOID NTAPI CsrDereferenceThread(IN PCSR_THREAD CsrThread)
enum _CSR_PROCESS_FLAGS CSR_PROCESS_FLAGS
enum _CSR_DEBUG_FLAGS * PCSR_PROCESS_DEBUG_FLAGS
PCSR_THREAD NTAPI CsrAddStaticServerThread(IN HANDLE hThread, IN PCLIENT_ID ClientId, IN ULONG ThreadFlags)
@ CsrProcessLastThreadTerminated
@ CsrProcessRealtimePriority
@ CsrProcessCreateNewGroup
@ CsrProcessNormalPriority
struct _CSR_THREAD * PCSR_THREAD
enum _CSR_PROCESS_FLAGS * PCSR_PROCESS_FLAGS
NTSTATUS(NTAPI * PCSR_API_ROUTINE)(IN OUT PCSR_API_MESSAGE ApiMessage, IN OUT PCSR_REPLY_CODE ReplyCode OPTIONAL)
struct _CSR_PROCESS CSR_PROCESS
VOID(NTAPI * PCSR_HARDERROR_CALLBACK)(IN PCSR_THREAD CsrThread, IN PHARDERROR_MSG HardErrorMessage)
enum _CSR_REPLY_CODE * PCSR_REPLY_CODE
@ CsrDebugProcessChildren
@ CsrDebugOnlyThisProcess
enum _CSR_DEBUG_FLAGS CSR_PROCESS_DEBUG_FLAGS
NTSTATUS(NTAPI * PCSR_SERVER_DLL_INIT_CALLBACK)(IN PCSR_SERVER_DLL LoadedServerDll)
enum _SHUTDOWN_RESULT * PSHUTDOWN_RESULT
enum _CSR_THREAD_FLAGS CSR_THREAD_FLAGS
NTSTATUS NTAPI CsrCallServerFromServer(IN PCSR_API_MESSAGE ReceiveMsg, IN OUT PCSR_API_MESSAGE ReplyMsg)
VOID NTAPI CsrMoveSatisfiedWait(IN PLIST_ENTRY DestinationList, IN PLIST_ENTRY WaitList)
VOID NTAPI CsrSetCallingSpooler(ULONG Reserved)
NTSTATUS NTAPI CsrLockProcessByClientId(IN HANDLE Pid, OUT PCSR_PROCESS *CsrProcess OPTIONAL)
struct _CSR_WAIT_BLOCK CSR_WAIT_BLOCK
struct _CSR_THREAD CSR_THREAD
struct _CSR_SERVER_DLL * PCSR_SERVER_DLL
enum _CSR_SHUTDOWN_FLAGS CSR_SHUTDOWN_FLAGS
enum _CSR_SHUTDOWN_FLAGS * PCSR_SHUTDOWN_FLAGS
NTSTATUS NTAPI CsrUnlockThread(IN PCSR_THREAD CsrThread)
VOID NTAPI CsrPopulateDosDevices(VOID)
@ CsrThreadIsServerThread
NTSTATUS NTAPI CsrShutdownProcesses(IN PLUID CallerLuid, IN ULONG Flags)
enum _CSR_THREAD_FLAGS * PCSR_THREAD_FLAGS
NTSTATUS NTAPI CsrDebugProcessStop(IN PCSR_PROCESS CsrProcess)
NTSTATUS NTAPI CsrGetProcessLuid(IN HANDLE hProcess OPTIONAL, OUT PLUID Luid)
NTSTATUS(NTAPI * PCSR_CONNECT_CALLBACK)(IN PCSR_PROCESS CsrProcess, IN OUT PVOID ConnectionInfo, IN OUT PULONG ConnectionInfoLength)
BOOLEAN NTAPI CsrValidateMessageString(IN PCSR_API_MESSAGE ApiMessage, IN PWSTR *MessageString)
PCSR_THREAD NTAPI CsrConnectToUser(VOID)
VOID(NTAPI * PCSR_DISCONNECT_CALLBACK)(IN PCSR_PROCESS CsrProcess)
NTSTATUS NTAPI CsrDebugProcess(IN PCSR_PROCESS CsrProcess)
NTSTATUS NTAPI CsrExecServerThread(IN PVOID ThreadHandler, IN ULONG Flags)
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)
NTSTATUS(NTAPI * PCSR_NEWPROCESS_CALLBACK)(IN PCSR_PROCESS Parent, IN PCSR_PROCESS CsrProcess)
struct _CSR_NT_SESSION * PCSR_NT_SESSION
@ CsrShutdownNonCsrProcess
NTSTATUS NTAPI CsrServerInitialization(IN ULONG ArgumentCount, IN PCHAR Arguments[])
struct _CSR_NT_SESSION CSR_NT_SESSION
VOID NTAPI CsrSetBackgroundPriority(IN PCSR_PROCESS CsrProcess)
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)
BOOLEAN NTAPI CsrNotifyWait(IN PLIST_ENTRY WaitList, IN BOOLEAN NotifyAll, IN PVOID WaitArgument1, IN PVOID WaitArgument2)
VOID NTAPI CsrDereferenceProcess(IN PCSR_PROCESS CsrProcess)
struct _CSR_PROCESS * PCSR_PROCESS
struct _CSR_WAIT_BLOCK * PCSR_WAIT_BLOCK
enum _EXCEPTION_DISPOSITION EXCEPTION_DISPOSITION
_In_ BOOL _In_ HANDLE hProcess
PULONG MinorVersion OPTIONAL
PCSR_NT_SESSION NtSession
ULONG ProcessGroupSequence
ULONG_PTR ClientViewBounds
PVOID ServerData[ANYSIZE_ARRAY]
PCSR_HARDERROR_CALLBACK HardErrorCallback
ULONG HighestApiSupported
PCSR_DISCONNECT_CALLBACK DisconnectCallback
PCSR_NEWPROCESS_CALLBACK NewProcessCallback
PCSR_API_ROUTINE * DispatchTable
PCSR_SHUTDOWNPROCESS_CALLBACK ShutdownProcessCallback
PCSR_CONNECT_CALLBACK ConnectCallback
struct _CSR_WAIT_BLOCK * WaitBlock
CSR_WAIT_FUNCTION WaitFunction
CSR_API_MESSAGE WaitApiMessage
#define FIELD_OFFSET(t, f)
_Reserved_ PVOID Reserved
_Must_inspect_result_ _In_ ULONG Flags
_Out_ PCLIENT_ID ClientId