Some new internal headers (draft) to be used in the planned CSR/WIN split subsystem...
authorEmanuele Aliberti <ea@iol.it>
Wed, 10 Aug 2005 08:28:08 +0000 (08:28 +0000)
committerEmanuele Aliberti <ea@iol.it>
Wed, 10 Aug 2005 08:28:08 +0000 (08:28 +0000)
svn path=/trunk/; revision=17254

reactos/include/subsys/csr/protocol.h [new file with mode: 0644]
reactos/include/subsys/csr/server.h [new file with mode: 0644]
reactos/include/subsys/win/base.h [new file with mode: 0644]
reactos/include/subsys/win/windows.h [new file with mode: 0644]

diff --git a/reactos/include/subsys/csr/protocol.h b/reactos/include/subsys/csr/protocol.h
new file mode 100644 (file)
index 0000000..77dd906
--- /dev/null
@@ -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 (file)
index 0000000..afe17d1
--- /dev/null
@@ -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 (file)
index 0000000..8a551a5
--- /dev/null
@@ -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 */
+
diff --git a/reactos/include/subsys/win/windows.h b/reactos/include/subsys/win/windows.h
new file mode 100644 (file)
index 0000000..9452548
--- /dev/null
@@ -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 */
+
+