mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 13:10:39 +00:00
Some new internal headers (draft) to be used in the planned CSR/WIN split subsystem server.
svn path=/trunk/; revision=17254
This commit is contained in:
parent
b5fe5d7dcb
commit
8236221006
4 changed files with 123 additions and 0 deletions
18
reactos/include/subsys/csr/protocol.h
Normal file
18
reactos/include/subsys/csr/protocol.h
Normal file
|
@ -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 */
|
75
reactos/include/subsys/csr/server.h
Normal file
75
reactos/include/subsys/csr/server.h
Normal file
|
@ -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 */
|
14
reactos/include/subsys/win/base.h
Normal file
14
reactos/include/subsys/win/base.h
Normal file
|
@ -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 */
|
||||||
|
|
16
reactos/include/subsys/win/windows.h
Normal file
16
reactos/include/subsys/win/windows.h
Normal file
|
@ -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 */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue