Commit daaa04a5 authored by ussrhero's avatar ussrhero
Browse files

added : getHostProcessPath ( return image path of the process running python...

added : getHostProcessPath ( return image path of the process running python interpreter with a pykd )
parent dbbc41c1
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment