[0.3.x] add: getCurrentProcessExeName

git-svn-id: https://pykd.svn.codeplex.com/svn@87324 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\EreTIk_cp 2014-02-21 09:02:17 +00:00 committed by Mikhail I. Izmestev
parent 17cf689e36
commit 0cec9aa5e0
2 changed files with 8 additions and 3 deletions

View File

@ -224,13 +224,18 @@ inline void setImplicitProcess(kdlib::MEMOFFSET_64 offset)
AutoRestorePyState pystate; AutoRestorePyState pystate;
kdlib::setImplicitProcess(offset); kdlib::setImplicitProcess(offset);
} }
inline kdlib::MEMOFFSET_64 getImplicitProcessOffset() inline kdlib::MEMOFFSET_64 getImplicitProcessOffset()
{ {
AutoRestorePyState pystate; AutoRestorePyState pystate;
return kdlib::getImplicitProcessOffset(); return kdlib::getImplicitProcessOffset();
} }
inline std::wstring getCurrentProcessExecutableName()
{
AutoRestorePyState pystate;
return kdlib::getCurrentProcessExecutableName();
}
python::list getProcessThreads(); python::list getProcessThreads();
python::list getTargetProcesses(); python::list getTargetProcesses();

View File

@ -365,8 +365,8 @@ BOOST_PYTHON_MODULE( pykd )
"Return current offset" ); "Return current offset" );
python::def( "setImplicitProcess", pykd::setImplicitProcess, python::def( "setImplicitProcess", pykd::setImplicitProcess,
"Set implicit process" ); "Set implicit process" );
// python::def( "getCurrentProcessExeName", &getCurrentProcessExecutableName, python::def( "getCurrentProcessExeName", pykd::getCurrentProcessExecutableName,
// "Return name of executable file loaded in the current process"); "Return name of executable file loaded in the current process");
python::def( "getProcessThreads", pykd::getProcessThreads, python::def( "getProcessThreads", pykd::getProcessThreads,
"Get all process's threads " ); "Get all process's threads " );
python::def( "getTargetProcesses", pykd::getTargetProcesses, python::def( "getTargetProcesses", pykd::getTargetProcesses,