mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-19 02:53:22 +08:00
added : getHostProcessPath ( return image path of the process running python interpreter with a pykd )
This commit is contained in:
parent
dbbc41c16c
commit
daaa04a5a4
@ -163,6 +163,19 @@ python::list getLocalProcesses()
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
std::wstring getHostProcessPath()
|
||||
{
|
||||
AutoRestorePyState pystate;
|
||||
|
||||
std::vector<WCHAR> fileNameBuffer(0x1000);
|
||||
|
||||
DWORD fileNameSize = GetModuleFileNameW(NULL, &fileNameBuffer.front(), fileNameBuffer.size() );
|
||||
|
||||
return std::wstring(&fileNameBuffer.front(), fileNameSize);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
python::tuple getBugCheckData()
|
||||
{
|
||||
kdlib::SystemCrashInfo crashInfo = {};
|
||||
|
@ -293,6 +293,7 @@ inline void setImplicitProcess(kdlib::MEMOFFSET_64 offset)
|
||||
AutoRestorePyState pystate;
|
||||
kdlib::setImplicitProcess(offset);
|
||||
}
|
||||
|
||||
inline kdlib::MEMOFFSET_64 getImplicitProcessOffset()
|
||||
{
|
||||
AutoRestorePyState pystate;
|
||||
@ -304,6 +305,8 @@ python::list getProcessThreads();
|
||||
python::list getTargetProcesses();
|
||||
python::list getLocalProcesses();
|
||||
|
||||
std::wstring getHostProcessPath();
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
inline
|
||||
|
@ -2,7 +2,7 @@
|
||||
#define PYKD_VERSION_MAJOR 0
|
||||
#define PYKD_VERSION_MINOR 3
|
||||
#define PYKD_VERSION_SUBVERSION 4
|
||||
#define PYKD_VERSION_BUILDNO 7
|
||||
#define PYKD_VERSION_BUILDNO 8
|
||||
|
||||
#define __VER_STR2__(x) #x
|
||||
#define __VER_STR1__(x) __VER_STR2__(x)
|
||||
|
Loading…
Reference in New Issue
Block a user