Some guessing on the API used by server DLLs.

svn path=/trunk/; revision=17278
This commit is contained in:
Emanuele Aliberti 2005-08-11 07:13:03 +00:00
parent bd3f2eea3c
commit e1b5e79e30
2 changed files with 26 additions and 22 deletions

View file

@ -34,4 +34,4 @@ typedef struct _CSR_PORT_MESSAGE_HEADER
// //
} CSR_PORT_MESSAGE_HEADER, * PCSR_PORT_MESSAGE_HEADER; } CSR_PORT_MESSAGE_HEADER, * PCSR_PORT_MESSAGE_HEADER;
#endif /* ndef __INCLUDE_CSR_LPCPROTO_H */ #endif /* ndef __INCLUDE_CSR_PROTOCOL_H */

View file

@ -5,7 +5,9 @@
typedef struct _CSR_SESSION typedef struct _CSR_SESSION
{ {
ULONG SessionId; ULONG SessionId;
HANDLE Heap;
PVOID ServerData;
} CSR_SESSION, * PCSR_SESSION; } CSR_SESSION, * PCSR_SESSION;
@ -13,7 +15,9 @@ typedef struct _CSR_SESSION
typedef struct _CSR_PROCESS typedef struct _CSR_PROCESS
{ {
HANDLE Process; HANDLE Process;
PCSR_SESSION CsrSession;
ULONG ReferenceCount; ULONG ReferenceCount;
PVOID ServerData;
} CSR_PROCESS, * PCSR_PROCESS; } CSR_PROCESS, * PCSR_PROCESS;
@ -23,6 +27,7 @@ typedef struct _CSR_THREAD
PCSR_SESSION CsrSession; PCSR_SESSION CsrSession;
PCSR_PROCESS CsrProcess; PCSR_PROCESS CsrProcess;
ULONG ReferenceCount; ULONG ReferenceCount;
PVOID ServerData;
} CSR_THREAD, * PCSR_THREAD; } CSR_THREAD, * PCSR_THREAD;
@ -36,39 +41,38 @@ typedef struct _CSR_WAIT
NTSTATUS STDCALL CsrAddStaticServerThread(); NTSTATUS STDCALL CsrAddStaticServerThread();
NTSTATUS STDCALL CsrCallServerFromServer(); NTSTATUS STDCALL CsrCallServerFromServer();
NTSTATUS STDCALL CsrConnectToUser(); NTSTATUS STDCALL CsrCreateProcess(PCSR_SESSION,PCSR_PROCESS*);
NTSTATUS STDCALL CsrCreateProcess();
NTSTATUS STDCALL CsrCreateRemoteThread(); NTSTATUS STDCALL CsrCreateRemoteThread();
NTSTATUS STDCALL CsrCreateSession(); NTSTATUS STDCALL CsrCreateSession(PCSR_SESSION*);
NTSTATUS STDCALL CsrCreateThread(); NTSTATUS STDCALL CsrCreateThread(PCSR_PROCESS,PCSR_THREAD*);
NTSTATUS STDCALL CsrCreateWait(); NTSTATUS STDCALL CsrCreateWait(PCSR_THREAD,PCSR_WAIT*);
NTSTATUS STDCALL CsrDebugProcess(); NTSTATUS STDCALL CsrDebugProcess(PCSR_PROCESS);
NTSTATUS STDCALL CsrDebugProcessStop(); NTSTATUS STDCALL CsrDebugProcessStop(PCSR_PROCESS);
NTSTATUS STDCALL CsrDereferenceProcess(); NTSTATUS STDCALL CsrDereferenceProcess(PCSR_PROCESS);
NTSTATUS STDCALL CsrDereferenceThread(); NTSTATUS STDCALL CsrDereferenceThread(PCSR_THREAD);
NTSTATUS STDCALL CsrDereferenceWait(); NTSTATUS STDCALL CsrDereferenceWait(PCSR_WAIT);
NTSTATUS STDCALL CsrDestroyProcess(); NTSTATUS STDCALL CsrDestroyProcess(PCSR_PROCESS);
NTSTATUS STDCALL CsrDestroyThread(); NTSTATUS STDCALL CsrDestroySession (PCSR_SESSION);
NTSTATUS STDCALL CsrDestroyThread(PCSR_THREAD);
NTSTATUS STDCALL CsrExecServerThread(); NTSTATUS STDCALL CsrExecServerThread();
NTSTATUS STDCALL CsrGetApiPorts(PHANDLE,PHANDLE); NTSTATUS STDCALL CsrGetApiPorts(PHANDLE,PHANDLE);
NTSTATUS STDCALL CsrGetProcessLuid(); NTSTATUS STDCALL CsrGetProcessLuid(PCSR_PROCESS,PLUID);
NTSTATUS STDCALL CsrImpersonateClient(); NTSTATUS STDCALL CsrImpersonateClient();
NTSTATUS STDCALL CsrLockProcessByClientId(); NTSTATUS STDCALL CsrLockProcessByClientId();
NTSTATUS STDCALL CsrLockThreadByClientId(); NTSTATUS STDCALL CsrLockThreadByClientId();
NTSTATUS STDCALL CsrMoveSatisfiedWait(); NTSTATUS STDCALL CsrMoveSatisfiedWait(PCSR_WAIT);
NTSTATUS STDCALL CsrNotifyWait(); NTSTATUS STDCALL CsrNotifyWait(PCSR_WAIT);
NTSTATUS STDCALL CsrPopulateDosDevices();
HANDLE STDCALL CsrQueryApiPort(VOID); HANDLE STDCALL CsrQueryApiPort(VOID);
NTSTATUS STDCALL CsrReferenceThread(); NTSTATUS STDCALL CsrReferenceThread(PCSR_THREAD);
NTSTATUS STDCALL CsrRevertToSelf(); NTSTATUS STDCALL CsrRevertToSelf();
NTSTATUS STDCALL CsrServerInitialization(ULONG,LPWSTR*); NTSTATUS STDCALL CsrServerInitialization(ULONG,LPWSTR*);
NTSTATUS STDCALL CsrSetBackgroundPriority(); NTSTATUS STDCALL CsrSetBackgroundPriority();
NTSTATUS STDCALL CsrSetCallingSpooler(); NTSTATUS STDCALL CsrSetCallingSpooler();
NTSTATUS STDCALL CsrSetForegroundPriority(); NTSTATUS STDCALL CsrSetForegroundPriority();
NTSTATUS STDCALL CsrShutdownProcesses(); NTSTATUS STDCALL CsrShutdownProcesses(PCSR_SESSION);
NTSTATUS STDCALL CsrUnhandledExceptionFilter(); NTSTATUS STDCALL CsrUnhandledExceptionFilter();
NTSTATUS STDCALL CsrUnlockProcess(); NTSTATUS STDCALL CsrUnlockProcess(PCSR_PROCESS);
NTSTATUS STDCALL CsrUnlockThread(); NTSTATUS STDCALL CsrUnlockThread(PCSR_THREAD);
NTSTATUS STDCALL CsrValidateMessageBuffer(); NTSTATUS STDCALL CsrValidateMessageBuffer();
NTSTATUS STDCALL CsrValidateMessageString(); NTSTATUS STDCALL CsrValidateMessageString();