mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
[0.3.x] changed : getCurrentProcessExeName replaced by getProcessExeName ( return name of executable file of the process )
git-svn-id: https://pykd.svn.codeplex.com/svn@89620 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
bf899e9937
commit
689042a475
@ -235,7 +235,7 @@ inline kdlib::PROCESS_DEBUG_ID getProcessIdByOffset( kdlib::MEMOFFSET_64 offset
|
|||||||
return kdlib::getProcessIdByOffset(offset);
|
return kdlib::getProcessIdByOffset(offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline kdlib::PROCESS_DEBUG_ID getProcessIdBySystemId( kdlib::PROCESS_ID pid = -1 )
|
inline kdlib::PROCESS_DEBUG_ID getProcessIdBySystemId( kdlib::PROCESS_ID pid)
|
||||||
{
|
{
|
||||||
AutoRestorePyState pystate;
|
AutoRestorePyState pystate;
|
||||||
return kdlib::getProcessIdBySystemId(pid);
|
return kdlib::getProcessIdBySystemId(pid);
|
||||||
@ -253,6 +253,12 @@ inline kdlib::MEMOFFSET_64 getProcessOffset( kdlib::PROCESS_DEBUG_ID id = -1)
|
|||||||
return kdlib::getProcessOffset(id);
|
return kdlib::getProcessOffset(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline std::wstring getProcessExecutableName(kdlib::PROCESS_DEBUG_ID id = -1)
|
||||||
|
{
|
||||||
|
AutoRestorePyState pystate;
|
||||||
|
return kdlib::getProcessExecutableName(id);
|
||||||
|
}
|
||||||
|
|
||||||
inline void setImplicitProcess(kdlib::MEMOFFSET_64 offset)
|
inline void setImplicitProcess(kdlib::MEMOFFSET_64 offset)
|
||||||
{
|
{
|
||||||
AutoRestorePyState pystate;
|
AutoRestorePyState pystate;
|
||||||
@ -264,11 +270,6 @@ inline kdlib::MEMOFFSET_64 getImplicitProcessOffset()
|
|||||||
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();
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define PYKD_VERSION_MAJOR 0
|
#define PYKD_VERSION_MAJOR 0
|
||||||
#define PYKD_VERSION_MINOR 3
|
#define PYKD_VERSION_MINOR 3
|
||||||
#define PYKD_VERSION_SUBVERSION 0
|
#define PYKD_VERSION_SUBVERSION 0
|
||||||
#define PYKD_VERSION_BUILDNO 17
|
#define PYKD_VERSION_BUILDNO 18
|
||||||
|
|
||||||
#define __VER_STR2__(x) #x
|
#define __VER_STR2__(x) #x
|
||||||
#define __VER_STR1__(x) __VER_STR2__(x)
|
#define __VER_STR1__(x) __VER_STR2__(x)
|
||||||
|
@ -66,7 +66,7 @@ BOOST_PYTHON_FUNCTION_OVERLOADS( findSymbol_, pykd::findSymbol, 1, 2 );
|
|||||||
|
|
||||||
BOOST_PYTHON_FUNCTION_OVERLOADS( getProcessOffset_, pykd::getProcessOffset, 0, 1);
|
BOOST_PYTHON_FUNCTION_OVERLOADS( getProcessOffset_, pykd::getProcessOffset, 0, 1);
|
||||||
BOOST_PYTHON_FUNCTION_OVERLOADS( getProcessSystemId_, pykd::getProcessSystemId, 0, 1);
|
BOOST_PYTHON_FUNCTION_OVERLOADS( getProcessSystemId_, pykd::getProcessSystemId, 0, 1);
|
||||||
BOOST_PYTHON_FUNCTION_OVERLOADS( getProcessIdBySystemId_, pykd::getProcessIdBySystemId, 0, 1 );
|
BOOST_PYTHON_FUNCTION_OVERLOADS( getProcessExecutableName_, pykd::getProcessExecutableName, 0, 1);
|
||||||
|
|
||||||
BOOST_PYTHON_FUNCTION_OVERLOADS( getThreadOffset_, pykd::getThreadOffset, 0, 1);
|
BOOST_PYTHON_FUNCTION_OVERLOADS( getThreadOffset_, pykd::getThreadOffset, 0, 1);
|
||||||
BOOST_PYTHON_FUNCTION_OVERLOADS( getThreadSystemId_, pykd::getThreadSystemId, 0, 1);
|
BOOST_PYTHON_FUNCTION_OVERLOADS( getThreadSystemId_, pykd::getThreadSystemId, 0, 1);
|
||||||
@ -391,8 +391,10 @@ BOOST_PYTHON_MODULE( pykd )
|
|||||||
"Return the location in the target's memory of the process structure ( PEB )" ) );
|
"Return the location in the target's memory of the process structure ( PEB )" ) );
|
||||||
python::def( "getProcessSystemID", pykd::getProcessSystemId, getProcessSystemId_( python::args( "Id" ),
|
python::def( "getProcessSystemID", pykd::getProcessSystemId, getProcessSystemId_( python::args( "Id" ),
|
||||||
"Return system process ID ( PID )" ) );
|
"Return system process ID ( PID )" ) );
|
||||||
python::def( "getProcessIdBySystemID", pykd::getProcessIdBySystemId, getProcessIdBySystemId_( python::args("Pid"),
|
python::def("getProcessExeName", pykd::getProcessExecutableName, getProcessExecutableName_(python::args("Id"),
|
||||||
"Return process ID by the system's process ID ( PID )" ) );
|
"Return name of executable file of the process"));
|
||||||
|
python::def( "getProcessIdBySystemID", pykd::getProcessIdBySystemId,
|
||||||
|
"Return process ID by the system's process ID ( PID )" );
|
||||||
python::def( "getCurrentProcess", pykd::getCurrentProcess,
|
python::def( "getCurrentProcess", pykd::getCurrentProcess,
|
||||||
"Return current offset" );
|
"Return current offset" );
|
||||||
python::def( "getCurrentProcessId", pykd::getCurrentProcessId,
|
python::def( "getCurrentProcessId", pykd::getCurrentProcessId,
|
||||||
@ -405,8 +407,6 @@ BOOST_PYTHON_MODULE( pykd )
|
|||||||
"Return implicit process" );
|
"Return implicit process" );
|
||||||
python::def( "setImplicitProcess", pykd::setImplicitProcess,
|
python::def( "setImplicitProcess", pykd::setImplicitProcess,
|
||||||
"Set implicit process" );
|
"Set implicit process" );
|
||||||
python::def( "getCurrentProcessExeName", pykd::getCurrentProcessExecutableName,
|
|
||||||
"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