95#if defined(__REACTOS__) && DBG
117#if defined(__REACTOS__) && DBG
182#define SB_PROCESS_FLAGS_DEBUG 0x1
183#define SB_PROCESS_FLAGS_WAIT_ON_THREAD 0x2
184#define SB_PROCESS_FLAGS_RESERVE_1MB 0x8
185#define SB_PROCESS_FLAGS_SKIP_CHECKS 0x20
struct _SB_TERMINATE_SESSION_MSG SB_TERMINATE_SESSION_MSG
struct _SM_CREATE_FOREIGN_SESSION_MSG * PSM_CREATE_FOREIGN_SESSION_MSG
struct _SM_TERMINATE_FOREIGN_SESSION_MSG * PSM_TERMINATE_FOREIGN_SESSION_MSG
struct _SB_CREATE_PROCESS_MSG SB_CREATE_PROCESS_MSG
struct _SM_START_CSR_MSG * PSM_START_CSR_MSG
struct _SM_TERMINATE_FOREIGN_SESSION_MSG SM_TERMINATE_FOREIGN_SESSION_MSG
NTSTATUS NTAPI SmLoadDeferedSubsystem(_In_ HANDLE SmApiPort, _In_ PUNICODE_STRING DeferedSubsystem)
This function is used to make the SM start an environment subsystem server process.
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)
NTSTATUS NTAPI SmStartCsr(_In_ HANDLE SmApiPort, _Out_ PULONG pMuSessionId, _In_opt_ PUNICODE_STRING CommandLine, _Out_ PHANDLE pWindowsSubSysProcessId, _Out_ PHANDLE pInitialCommandProcessId)
Requests the SM to create a new Terminal Services session and start an initial command.
struct _SM_STOP_CSR_MSG SM_STOP_CSR_MSG
struct _SM_SESSION_COMPLETE_MSG * PSM_SESSION_COMPLETE_MSG
struct _SM_START_CSR_MSG SM_START_CSR_MSG
struct _SB_TERMINATE_SESSION_MSG * PSB_TERMINATE_SESSION_MSG
struct _SB_FOREIGN_SESSION_COMPLETE_MSG SB_FOREIGN_SESSION_COMPLETE_MSG
struct _SB_CREATE_SESSION_MSG * PSB_CREATE_SESSION_MSG
enum _SMSRV_API_NUMBER SMSRV_API_NUMBER
struct _SM_SESSION_COMPLETE_MSG SM_SESSION_COMPLETE_MSG
enum _SB_API_NUMBER SB_API_NUMBER
struct _SM_API_MSG * PSM_API_MSG
struct _SB_CREATE_SESSION_MSG SB_CREATE_SESSION_MSG
NTSTATUS NTAPI SmConnectToSm(_In_opt_ PUNICODE_STRING SbApiPortName, _In_opt_ HANDLE SbApiPort, _In_opt_ ULONG ImageType, _Out_ PHANDLE SmApiPort)
Connects to the SM API port for registering a session callback port (Sb) associated to a subsystem,...
struct _SB_CONNECTION_INFO SB_CONNECTION_INFO
struct _SB_API_MSG * PSB_API_MSG
struct _SM_EXEC_PGM_MSG SM_EXEC_PGM_MSG
@ SbpForeignSessionComplete
struct _SB_CREATE_PROCESS_MSG * PSB_CREATE_PROCESS_MSG
NTSTATUS NTAPI SmSendMsgToSm(_In_ HANDLE SmApiPort, _Inout_ PSM_API_MSG SmApiMsg)
Sends a message to the SM via the SM API port.
struct _SM_LOAD_DEFERED_SUBSYSTEM_MSG * PSM_LOAD_DEFERED_SUBSYSTEM_MSG
struct _SB_FOREIGN_SESSION_COMPLETE_MSG * PSB_FOREIGN_SESSION_COMPLETE_MSG
NTSTATUS NTAPI SmStopCsr(_In_ HANDLE SmApiPort, _In_ ULONG MuSessionId)
Requests the SM to terminate a Terminal Services session.
NTSTATUS NTAPI SmExecPgm(_In_ HANDLE SmApiPort, _In_ PRTL_USER_PROCESS_INFORMATION ProcessInformation, _In_ BOOLEAN DebugFlag)
Requests the SM to start a process under a new environment session.
@ SmpLoadDeferedSubsystemApi
@ SmpTerminateForeignSessionApi
@ SmpCreateForeignSessionApi
struct _SB_CONNECTION_INFO * PSB_CONNECTION_INFO
struct _SM_CREATE_FOREIGN_SESSION_MSG SM_CREATE_FOREIGN_SESSION_MSG
struct _SM_LOAD_DEFERED_SUBSYSTEM_MSG SM_LOAD_DEFERED_SUBSYSTEM_MSG
struct _SB_API_MSG SB_API_MSG
struct _SM_EXEC_PGM_MSG * PSM_EXEC_PGM_MSG
struct _SM_API_MSG SM_API_MSG
struct _SM_STOP_CSR_MSG * PSM_STOP_CSR_MSG
union _SB_API_MSG::@3522::@3524::@3526 u
SB_CREATE_PROCESS_MSG CreateProcess
SB_FOREIGN_SESSION_COMPLETE_MSG ForeignSessionComplete
SB_TERMINATE_SESSION_MSG TerminateSession
SB_CREATE_SESSION_MSG CreateSession
SB_CONNECTION_INFO ConnectionInfo
PUNICODE_STRING CommandLine
struct _SB_CREATE_PROCESS_MSG::@3518::@3521 Out
struct _SB_CREATE_PROCESS_MSG::@3518::@3520 In
PUNICODE_STRING ImageName
PUNICODE_STRING CurrentDirectory
RTL_USER_PROCESS_INFORMATION ProcessInfo
SM_SESSION_COMPLETE_MSG SessionComplete
SM_TERMINATE_FOREIGN_SESSION_MSG TerminateForeignComplete
SM_START_CSR_MSG StartCsr
union _SM_API_MSG::@3517 u
SM_CREATE_FOREIGN_SESSION_MSG CreateForeignSession
SMSRV_API_NUMBER ApiNumber
SM_LOAD_DEFERED_SUBSYSTEM_MSG LoadDefered
RTL_USER_PROCESS_INFORMATION ProcessInformation
HANDLE SmpInitialCommandProcessId
HANDLE WindowsSubSysProcessId