mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 12:24:52 +08:00
[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:
parent
17cf689e36
commit
0cec9aa5e0
@ -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();
|
||||||
|
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user