diff --git a/pykd/pydbgeng.h b/pykd/pydbgeng.h index cf007d0..50ccc1d 100644 --- a/pykd/pydbgeng.h +++ b/pykd/pydbgeng.h @@ -290,6 +290,13 @@ unsigned long getCurrentTime() /////////////////////////////////////////////////////////////////////////////// +inline +std::wstring getExtensionSearchPath() +{ + AutoRestorePyState pystate; + return kdlib::getExtensionSearchPath(); +} + inline kdlib::EXTENSION_ID loadExtension(const std::wstring &extPath ) { diff --git a/pykd/pymod.cpp b/pykd/pymod.cpp index d3c95e1..550c848 100644 --- a/pykd/pymod.cpp +++ b/pykd/pymod.cpp @@ -99,6 +99,8 @@ BOOST_PYTHON_MODULE( pykd ) // DbgEng services python::def( "setSymSrvDir", pykd::setSymSrvDir, "Set directory of SYMSRV.dll library.\nUsually this is a directory of WinDbg"); + python::def( "getExtensionSearchPath", pykd::getExtensionSearchPath, + "Return the extension DLL search path" ); python::def( "loadExt", pykd::loadExtension, "Load a WinDBG extension. Return handle of the loaded extension" ); python::def( "removeExt", pykd::removeExtension,