[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:
SND\ussrhero_cp 2015-01-12 21:44:08 +00:00 committed by Mikhail I. Izmestev
parent bf899e9937
commit 689042a475
3 changed files with 13 additions and 12 deletions

View File

@ -235,7 +235,7 @@ inline kdlib::PROCESS_DEBUG_ID getProcessIdByOffset( kdlib::MEMOFFSET_64 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;
return kdlib::getProcessIdBySystemId(pid);
@ -253,6 +253,12 @@ inline kdlib::MEMOFFSET_64 getProcessOffset( kdlib::PROCESS_DEBUG_ID id = -1)
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)
{
AutoRestorePyState pystate;
@ -264,11 +270,6 @@ inline kdlib::MEMOFFSET_64 getImplicitProcessOffset()
return kdlib::getImplicitProcessOffset();
}
inline std::wstring getCurrentProcessExecutableName()
{
AutoRestorePyState pystate;
return kdlib::getCurrentProcessExecutableName();
}
python::list getProcessThreads();
python::list getTargetProcesses();

View File

@ -2,7 +2,7 @@
#define PYKD_VERSION_MAJOR 0
#define PYKD_VERSION_MINOR 3
#define PYKD_VERSION_SUBVERSION 0
#define PYKD_VERSION_BUILDNO 17
#define PYKD_VERSION_BUILDNO 18
#define __VER_STR2__(x) #x
#define __VER_STR1__(x) __VER_STR2__(x)

View File

@ -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( 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( 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 )" ) );
python::def( "getProcessSystemID", pykd::getProcessSystemId, getProcessSystemId_( python::args( "Id" ),
"Return system process ID ( PID )" ) );
python::def( "getProcessIdBySystemID", pykd::getProcessIdBySystemId, getProcessIdBySystemId_( python::args("Pid"),
"Return process ID by the system's process ID ( PID )" ) );
python::def("getProcessExeName", pykd::getProcessExecutableName, getProcessExecutableName_(python::args("Id"),
"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,
"Return current offset" );
python::def( "getCurrentProcessId", pykd::getCurrentProcessId,
@ -405,8 +407,6 @@ BOOST_PYTHON_MODULE( pykd )
"Return implicit process" );
python::def( "setImplicitProcess", pykd::setImplicitProcess,
"Set implicit 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,