From 81fe025857bdcd0910e49e0180bfdb111c048f7a Mon Sep 17 00:00:00 2001 From: Emanuele Aliberti Date: Tue, 16 Aug 2005 22:16:09 +0000 Subject: [PATCH] Add a stub for NTDLL!CsrGetProcessId. svn path=/trunk/; revision=17416 --- reactos/lib/ntdll/csr/srv.c | 25 +++++++++++++++++++++++++ reactos/lib/ntdll/def/ntdll.def | 1 + reactos/lib/ntdll/ntdll.xml | 1 + 3 files changed, 27 insertions(+) create mode 100644 reactos/lib/ntdll/csr/srv.c diff --git a/reactos/lib/ntdll/csr/srv.c b/reactos/lib/ntdll/csr/srv.c new file mode 100644 index 00000000000..21b4c8a15e6 --- /dev/null +++ b/reactos/lib/ntdll/csr/srv.c @@ -0,0 +1,25 @@ +/* $Id$ + * + * COPYRIGHT: See COPYING in the top level directory + * PROJECT: ReactOS kernel + * FILE: lib/ntdll/csr/srv.c + * PURPOSE: Get CSR.EXE PID + * + */ + +/* INCLUDES *****************************************************************/ + +#include +#define NDEBUG +#include + +/* GLOBALS *******************************************************************/ + +DWORD ProcessId = 0; // TODO: set it on startup + +DWORD STDCALL CsrGetProcessId (VOID) +{ + return ProcessId; +} + +/* EOF */ diff --git a/reactos/lib/ntdll/def/ntdll.def b/reactos/lib/ntdll/def/ntdll.def index af01fb1f31b..385adfc461f 100644 --- a/reactos/lib/ntdll/def/ntdll.def +++ b/reactos/lib/ntdll/def/ntdll.def @@ -16,6 +16,7 @@ CsrCaptureTimeout@8 CsrClientCallServer@16 CsrClientConnectToServer@24 CsrFreeCaptureBuffer@4 +CsrGetProcessId@0 CsrIdentifyAlertableThread@0 CsrNewThread@0 CsrProbeForRead@12 diff --git a/reactos/lib/ntdll/ntdll.xml b/reactos/lib/ntdll/ntdll.xml index 5e23933cf03..b577ac69ab5 100644 --- a/reactos/lib/ntdll/ntdll.xml +++ b/reactos/lib/ntdll/ntdll.xml @@ -17,6 +17,7 @@ capture.c lpc.c probe.c + srv.c thread.c