Some new internal headers (draft) to be used in the planned CSR/WIN
split subsystem server.
Added: trunk/reactos/include/subsys/csr/
Added: trunk/reactos/include/subsys/csr/protocol.h
Added: trunk/reactos/include/subsys/csr/server.h
Added: trunk/reactos/include/subsys/win/
Added: trunk/reactos/include/subsys/win/base.h
Added: trunk/reactos/include/subsys/win/windows.h
_____
Added: trunk/reactos/include/subsys/csr/protocol.h
--- trunk/reactos/include/subsys/csr/protocol.h 2005-08-10 03:59:01 UTC
(rev 17253)
+++ trunk/reactos/include/subsys/csr/protocol.h 2005-08-10 08:28:08 UTC
(rev 17254)
@@ -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 */
Property changes on: trunk/reactos/include/subsys/csr/protocol.h
___________________________________________________________________
Name: svn:keywords
+ author id date revision
Name: svn:eol-style
+ native
_____
Added: trunk/reactos/include/subsys/csr/server.h
--- trunk/reactos/include/subsys/csr/server.h 2005-08-10 03:59:01 UTC
(rev 17253)
+++ trunk/reactos/include/subsys/csr/server.h 2005-08-10 08:28:08 UTC
(rev 17254)
@@ -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 */
Property changes on: trunk/reactos/include/subsys/csr/server.h
___________________________________________________________________
Name: svn:keywords
+ author id date revision
Name: svn:eol-style
+ native
_____
Added: trunk/reactos/include/subsys/win/base.h
--- trunk/reactos/include/subsys/win/base.h 2005-08-10 03:59:01 UTC
(rev 17253)
+++ trunk/reactos/include/subsys/win/base.h 2005-08-10 08:28:08 UTC
(rev 17254)
@@ -0,0 +1,14 @@
+#if !defined(__INCLUDE_WIN_BASE_H)
+#define __INCLUDE_WIN_BASE_H
+
+#include <csr/protocol.h>
+
+/* w32 base server */
+
+#define WIN_SRV_BASE 1
+
+NTSTATUS STDCALL BaseSetProcessCreateNotify ();
+NTSTATUS STDCALL ServerDllInitialization ();
+
+#endif /* ndef __INCLUDE_WIN_BASE_H */
+
Property changes on: trunk/reactos/include/subsys/win/base.h
___________________________________________________________________
Name: svn:keywords
+ author id date revision
Name: svn:eol-style
+ native
_____
Added: trunk/reactos/include/subsys/win/windows.h
--- trunk/reactos/include/subsys/win/windows.h 2005-08-10 03:59:01 UTC
(rev 17253)
+++ trunk/reactos/include/subsys/win/windows.h 2005-08-10 08:28:08 UTC
(rev 17254)
@@ -0,0 +1,16 @@
+#if !defined(__INCLUDE_WIN_WINDOWS_H)
+#define __INCLUDE_WIN_WINDOWS_H
+
+#include <csr/protocol.h>
+
+/* 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 */
+
+
Property changes on: trunk/reactos/include/subsys/win/windows.h
___________________________________________________________________
Name: svn:keywords
+ author id date revision
Name: svn:eol-style
+ native
Show replies by date