mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +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;
|
||||
kdlib::setImplicitProcess(offset);
|
||||
}
|
||||
|
||||
inline kdlib::MEMOFFSET_64 getImplicitProcessOffset()
|
||||
{
|
||||
AutoRestorePyState pystate;
|
||||
return kdlib::getImplicitProcessOffset();
|
||||
}
|
||||
|
||||
inline std::wstring getCurrentProcessExecutableName()
|
||||
{
|
||||
AutoRestorePyState pystate;
|
||||
return kdlib::getCurrentProcessExecutableName();
|
||||
}
|
||||
|
||||
python::list getProcessThreads();
|
||||
python::list getTargetProcesses();
|
||||
|
||||
|
@ -365,8 +365,8 @@ BOOST_PYTHON_MODULE( pykd )
|
||||
"Return current offset" );
|
||||
python::def( "setImplicitProcess", pykd::setImplicitProcess,
|
||||
"Set implicit process" );
|
||||
// python::def( "getCurrentProcessExeName", &getCurrentProcessExecutableName,
|
||||
// "Return name of executable file loaded in the current process");
|
||||
python::def( "getCurrentProcessExeName", pykd::getCurrentProcessExecutableName,
|
||||
"Return name of executable file loaded in the current process");
|
||||
python::def( "getProcessThreads", pykd::getProcessThreads,
|
||||
"Get all process's threads " );
|
||||
python::def( "getTargetProcesses", pykd::getTargetProcesses,
|
||||
|
Loading…
Reference in New Issue
Block a user