[0.3.x] added : getting process information

git-svn-id: https://pykd.svn.codeplex.com/svn@84439 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2013-07-23 15:28:54 +00:00 committed by Mikhail I. Izmestev
parent c04d564c93
commit 022a7b9d16

View File

@ -285,7 +285,24 @@ BOOST_PYTHON_MODULE( pykd )
// //python::def( "removeAllBp", &removeAllBp, // //python::def( "removeAllBp", &removeAllBp,
// // "Remove all breapoints" ); // // "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, // python::def( "getCurrentProcess", &getCurrentProcess,
// "Return pointer to current process's block" ); // "Return pointer to current process's block" );
// python::def( "getImplicitThread", &getImplicitThread, // python::def( "getImplicitThread", &getImplicitThread,