33 "SbForeignSessionComplete",
125 ASSERT(Session->SessionId != 0);
126 ASSERT(Session->ReferenceCount != 0);
129 Session->ReferenceCount++;
164 ASSERT(Session->SessionId != 0);
165 ASSERT(Session->ReferenceCount != 0);
168 if ((--Session->ReferenceCount) == 0)
289 CsrThread->
Flags = 0;
460 DPRINT1(
"CSRSS: Sb Complete Connection failed %lx\n",
Status);
509 DPRINT1(
"CSRSS: ReceivePort failed - Status == %X\n",
Status);
514 MessageType = ReceiveMsg.
h.u2.s2.Type;
555 ReplyMsg = &ReceiveMsg;
563 DPRINT1(
"CSRSS: %s Session Api called and failed\n",
PVOID NTAPI RtlAllocateHeap(IN PVOID HeapHandle, IN ULONG Flags, IN SIZE_T Size)
BOOLEAN NTAPI RtlFreeHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID HeapBase)
NTSTATUS NTAPI NtAcceptConnectPort(OUT PHANDLE PortHandle, IN PVOID PortContext OPTIONAL, IN PPORT_MESSAGE ReplyMessage, IN BOOLEAN AcceptConnection, IN OUT PPORT_VIEW ServerView OPTIONAL, OUT PREMOTE_PORT_VIEW ClientView OPTIONAL)
NTSTATUS NTAPI NtCompleteConnectPort(IN HANDLE PortHandle)
VOID NTAPI CsrSetBackgroundPriority(IN PCSR_PROCESS CsrProcess)
#define NT_SUCCESS(StatCode)
MMRESULT CreateSession(DeviceType device_type, UINT device_id, SessionInfo **session_info)
static const WCHAR Message[]
#define RemoveEntryList(Entry)
#define InsertHeadList(ListHead, Entry)
#define IsListEmpty(ListHead)
#define InitializeListHead(ListHead)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_In_ BOOL _In_ HANDLE hProcess
#define LPC_CONNECTION_REQUEST
NTSYSAPI NTSTATUS NTAPI RtlInitializeCriticalSection(_In_ PRTL_CRITICAL_SECTION CriticalSection)
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
struct _REMOTE_PORT_VIEW REMOTE_PORT_VIEW
NTSTATUS NTAPI NtReplyWaitReceivePort(IN HANDLE PortHandle, OUT PVOID *PortContext OPTIONAL, IN PPORT_MESSAGE ReplyMessage OPTIONAL, OUT PPORT_MESSAGE ReceiveMessage)
NTSTATUS NTAPI NtQueryInformationThread(IN HANDLE ThreadHandle, IN THREADINFOCLASS ThreadInformationClass, OUT PVOID ThreadInformation, IN ULONG ThreadInformationLength, OUT PULONG ReturnLength OPTIONAL)
NTSTATUS NTAPI NtSetInformationProcess(IN HANDLE ProcessHandle, IN PROCESSINFOCLASS ProcessInformationClass, IN PVOID ProcessInformation, IN ULONG ProcessInformationLength)
NTSTATUS NTAPI NtResumeThread(IN HANDLE ThreadHandle, OUT PULONG SuspendCount OPTIONAL)
#define STATUS_NOT_IMPLEMENTED
NTSTATUS NTAPI SmSessionComplete(_In_ HANDLE SmApiPort, _In_ ULONG SessionId, _In_ NTSTATUS SessionStatus)
This function is called by an environment subsystem server to tell the SM it has terminated the sessi...
BOOLEAN(NTAPI * PSB_API_ROUTINE)(_In_ PSB_API_MSG SbApiMsg)
PCSR_PROCESS NTAPI CsrAllocateProcess(VOID)
NTSTATUS NTAPI CsrInsertThread(IN PCSR_PROCESS Process, IN PCSR_THREAD Thread)
BOOLEAN NTAPI ProtectHandle(IN HANDLE ObjectHandle)
VOID NTAPI CsrInsertProcess(IN PCSR_PROCESS ParentProcess OPTIONAL, IN PCSR_PROCESS CsrProcess)
VOID NTAPI CsrDeallocateProcess(IN PCSR_PROCESS CsrProcess)
VOID NTAPI CsrDeallocateThread(IN PCSR_THREAD CsrThread)
#define CSR_SERVER_DLL_MAX
PCSR_THREAD NTAPI CsrAllocateThread(IN PCSR_PROCESS CsrProcess)
#define CsrAcquireProcessLock()
#define CsrAcquireNtSessionLock()
PCSR_SERVER_DLL CsrLoadedServerDll[CSR_SERVER_DLL_MAX]
#define CsrReleaseProcessLock()
#define CsrReleaseNtSessionLock()
BOOLEAN NTAPI CsrSbTerminateSession(IN PSB_API_MSG ApiMessage)
VOID NTAPI CsrReferenceNtSession(IN PCSR_NT_SESSION Session)
NTSTATUS NTAPI CsrSbApiHandleConnectionRequest(IN PSB_API_MSG Message)
VOID NTAPI CsrSbApiRequestThread(IN PVOID Parameter)
NTSTATUS NTAPI CsrInitializeNtSessionList(VOID)
RTL_CRITICAL_SECTION CsrNtSessionLock
PSB_API_ROUTINE CsrServerSbApiDispatch[SbpMaxApiNumber - SbpCreateSession]
LIST_ENTRY CsrNtSessionList
BOOLEAN NTAPI CsrSbCreateProcess(IN PSB_API_MSG ApiMessage)
PCSR_NT_SESSION NTAPI CsrAllocateNtSession(IN ULONG SessionId)
BOOLEAN NTAPI CsrSbForeignSessionComplete(IN PSB_API_MSG ApiMessage)
PCHAR CsrServerSbApiName[SbpMaxApiNumber - SbpCreateSession]
BOOLEAN NTAPI CsrSbCreateSession(IN PSB_API_MSG ApiMessage)
VOID NTAPI CsrDereferenceNtSession(IN PCSR_NT_SESSION Session, IN NTSTATUS ExitStatus)
_Inout_opt_ PVOID Parameter