From 022a7b9d1681a2b5b0f833475a1306c36384695f Mon Sep 17 00:00:00 2001
From: "SND\\kernelnet_cp"
 <SND\kernelnet_cp@9b283d60-5439-405e-af05-b73fd8c4d996>
Date: Tue, 23 Jul 2013 15:28:54 +0000
Subject: [PATCH] [0.3.x] added : getting process information

git-svn-id: https://pykd.svn.codeplex.com/svn@84439 9b283d60-5439-405e-af05-b73fd8c4d996
---
 pykd/pymod.cpp | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/pykd/pymod.cpp b/pykd/pymod.cpp
index d1ca7b9..fd9c2a1 100644
--- a/pykd/pymod.cpp
+++ b/pykd/pymod.cpp
@@ -285,7 +285,24 @@ BOOST_PYTHON_MODULE( pykd )
    // //python::def( "removeAllBp", &removeAllBp,
    // //    "Remove all breapoints" );
 
-   // // processes and threads
+    // processes and threads
+    python::def ( "getNumberProcesses", kdlib::getNumberProcesses,
+        "Return number of processes on the target system" );
+    python::def( "getCurrentProcess", kdlib::getCurrentProcessId,
+        "Return ID of the current process. This ID can be used with terminateProcess" );
+    python::def( "getProcessOffset", kdlib::getProcessOffset,
+        "Return the location in the target's memory of the process structure ( PEB )" );
+    python::def( "getProcessSystemID", kdlib::getProcessSystemId,
+        "Return system process ID ( PID )" );
+    python::def( "getProcessId", kdlib::getProcessIdByOffset,
+        "Return process ID by the location in the target's memory of the process structure" );
+    python::def( "getProcessId", kdlib::getProcessIdBySystemId,
+        "Return process ID by the system's process ID ( PID )" );
+
+
+
+
+
    // python::def( "getCurrentProcess", &getCurrentProcess,
    //     "Return pointer to current process's block" );
    // python::def( "getImplicitThread", &getImplicitThread,