From 8236221006c90e0807dd61f785ba0b74d53cc68f Mon Sep 17 00:00:00 2001 From: Emanuele Aliberti Date: Wed, 10 Aug 2005 08:28:08 +0000 Subject: [PATCH] Some new internal headers (draft) to be used in the planned CSR/WIN split subsystem server. svn path=/trunk/; revision=17254 --- reactos/include/subsys/csr/protocol.h | 18 +++++++ reactos/include/subsys/csr/server.h | 75 +++++++++++++++++++++++++++ reactos/include/subsys/win/base.h | 14 +++++ reactos/include/subsys/win/windows.h | 16 ++++++ 4 files changed, 123 insertions(+) create mode 100644 reactos/include/subsys/csr/protocol.h create mode 100644 reactos/include/subsys/csr/server.h create mode 100644 reactos/include/subsys/win/base.h create mode 100644 reactos/include/subsys/win/windows.h diff --git a/reactos/include/subsys/csr/protocol.h b/reactos/include/subsys/csr/protocol.h new file mode 100644 index 00000000000..77dd906dfe1 --- /dev/null +++ b/reactos/include/subsys/csr/protocol.h @@ -0,0 +1,18 @@ +#ifndef __INCLUDE_CSR_PROTOCOL_H +#define __INCLUDE_CSR_PROTOCOL_H + +typedef ULONG CSR_API_NUMBER; + +#define MAKE_CSR_OPCODE(s,m) ((s) << 16) + (m) + +// Gary Nebbett +typedef struct _CSR_PORT_MESSAGE_HEADER +{ + DWORD Unused1; + ULONG Opcode; + ULONG Status; + ULONG Unused2; + +} CSR_PORT_MESSAGE_HEADER, * PCSR_PORT_MESSAGE_HEADER; + +#endif /* ndef __INCLUDE_CSR_LPCPROTO_H */ diff --git a/reactos/include/subsys/csr/server.h b/reactos/include/subsys/csr/server.h new file mode 100644 index 00000000000..afe17d14790 --- /dev/null +++ b/reactos/include/subsys/csr/server.h @@ -0,0 +1,75 @@ +#if !defined(__INCLUDE_CSR_SERVER_H) +#define __INCLUDE_CSR_SERVER_H + +#define CSR_SRV_SERVER 0 + +typedef struct _CSR_SESSION +{ + ULONG SessionId; + +} CSR_SESSION, * PCSR_SESSION; + + +typedef struct _CSR_PROCESS +{ + HANDLE Process; + ULONG ReferenceCount; + +} CSR_PROCESS, * PCSR_PROCESS; + +typedef struct _CSR_THREAD +{ + HANDLE Thread; + PCSR_SESSION CsrSession; + PCSR_PROCESS CsrProcess; + ULONG ReferenceCount; + +} CSR_THREAD, * PCSR_THREAD; + +typedef struct _CSR_WAIT +{ + PCSR_PROCESS CsrThread; + +} CSR_WAIT, * PCSR_WAIT; + +/* symbols exported by native DLL csrsrv.dll */ + +NTSTATUS STDCALL CsrAddStaticServerThread(); +NTSTATUS STDCALL CsrCallServerFromServer(); +NTSTATUS STDCALL CsrConnectToUser(); +NTSTATUS STDCALL CsrCreateProcess(); +NTSTATUS STDCALL CsrCreateRemoteThread(); +NTSTATUS STDCALL CsrCreateSession(); +NTSTATUS STDCALL CsrCreateThread(); +NTSTATUS STDCALL CsrCreateWait(); +NTSTATUS STDCALL CsrDebugProcess(); +NTSTATUS STDCALL CsrDebugProcessStop(); +NTSTATUS STDCALL CsrDereferenceProcess(); +NTSTATUS STDCALL CsrDereferenceThread(); +NTSTATUS STDCALL CsrDereferenceWait(); +NTSTATUS STDCALL CsrDestroyProcess(); +NTSTATUS STDCALL CsrDestroyThread(); +NTSTATUS STDCALL CsrExecServerThread(); +NTSTATUS STDCALL CsrGetApiPorts(PHANDLE,PHANDLE); +NTSTATUS STDCALL CsrGetProcessLuid(); +NTSTATUS STDCALL CsrImpersonateClient(); +NTSTATUS STDCALL CsrLockProcessByClientId(); +NTSTATUS STDCALL CsrLockThreadByClientId(); +NTSTATUS STDCALL CsrMoveSatisfiedWait(); +NTSTATUS STDCALL CsrNotifyWait(); +NTSTATUS STDCALL CsrPopulateDosDevices(); +HANDLE STDCALL CsrQueryApiPort(VOID); +NTSTATUS STDCALL CsrReferenceThread(); +NTSTATUS STDCALL CsrRevertToSelf(); +NTSTATUS STDCALL CsrServerInitialization(ULONG,LPWSTR*); +NTSTATUS STDCALL CsrSetBackgroundPriority(); +NTSTATUS STDCALL CsrSetCallingSpooler(); +NTSTATUS STDCALL CsrSetForegroundPriority(); +NTSTATUS STDCALL CsrShutdownProcesses(); +NTSTATUS STDCALL CsrUnhandledExceptionFilter(); +NTSTATUS STDCALL CsrUnlockProcess(); +NTSTATUS STDCALL CsrUnlockThread(); +NTSTATUS STDCALL CsrValidateMessageBuffer(); +NTSTATUS STDCALL CsrValidateMessageString(); + +#endif /* ndef __INCLUDE_CSR_SERVER_H */ diff --git a/reactos/include/subsys/win/base.h b/reactos/include/subsys/win/base.h new file mode 100644 index 00000000000..8a551a53b3f --- /dev/null +++ b/reactos/include/subsys/win/base.h @@ -0,0 +1,14 @@ +#if !defined(__INCLUDE_WIN_BASE_H) +#define __INCLUDE_WIN_BASE_H + +#include + +/* w32 base server */ + +#define WIN_SRV_BASE 1 + +NTSTATUS STDCALL BaseSetProcessCreateNotify (); +NTSTATUS STDCALL ServerDllInitialization (); + +#endif /* ndef __INCLUDE_WIN_BASE_H */ + diff --git a/reactos/include/subsys/win/windows.h b/reactos/include/subsys/win/windows.h new file mode 100644 index 00000000000..94525487b21 --- /dev/null +++ b/reactos/include/subsys/win/windows.h @@ -0,0 +1,16 @@ +#if !defined(__INCLUDE_WIN_WINDOWS_H) +#define __INCLUDE_WIN_WINDOWS_H + +#include + +/* w32 console server */ +#define WIN_SRV_WIN_CONSOLE 2 +NTSTATUS STDCALL ConServerDllInitialization (); + +/* w32 user server */ +#define WIN_SRV_WIN_USER 3 +NTSTATUS STDCALL UserServerDllInitialization (); + +#endif /* ndef __INCLUDE_WIN_WINDOWS_H */ + + -- 2.17.1