Add a stub for NTDLL!CsrGetProcessId.
authorEmanuele Aliberti <ea@iol.it>
Tue, 16 Aug 2005 22:16:09 +0000 (22:16 +0000)
committerEmanuele Aliberti <ea@iol.it>
Tue, 16 Aug 2005 22:16:09 +0000 (22:16 +0000)
svn path=/trunk/; revision=17416

reactos/lib/ntdll/csr/srv.c [new file with mode: 0644]
reactos/lib/ntdll/def/ntdll.def
reactos/lib/ntdll/ntdll.xml

diff --git a/reactos/lib/ntdll/csr/srv.c b/reactos/lib/ntdll/csr/srv.c
new file mode 100644 (file)
index 0000000..21b4c8a
--- /dev/null
@@ -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 <ntdll.h>
+#define NDEBUG
+#include <debug.h>
+
+/* GLOBALS *******************************************************************/
+
+DWORD ProcessId = 0; // TODO: set it on startup
+
+DWORD STDCALL CsrGetProcessId (VOID)
+{
+       return ProcessId;
+}
+
+/* EOF */
index af01fb1..385adfc 100644 (file)
@@ -16,6 +16,7 @@ CsrCaptureTimeout@8
 CsrClientCallServer@16
 CsrClientConnectToServer@24
 CsrFreeCaptureBuffer@4
+CsrGetProcessId@0
 CsrIdentifyAlertableThread@0
 CsrNewThread@0
 CsrProbeForRead@12
index 5e23933..b577ac6 100644 (file)
@@ -17,6 +17,7 @@
                <file>capture.c</file>
                <file>lpc.c</file>
                <file>probe.c</file>
+               <file>srv.c</file>
                <file>thread.c</file>
        </directory>
        <directory name="dbg">