From 9f6cd6996fb323f27d682ad92f190fae7d3b6776 Mon Sep 17 00:00:00 2001 From: "SND\\EreTIk_cp" Date: Thu, 23 Jan 2014 14:53:21 +0000 Subject: [PATCH] [0.3.x] add getExtensionSearchPath [0.3.x] workitem/12654 fixed git-svn-id: https://pykd.svn.codeplex.com/svn@87123 9b283d60-5439-405e-af05-b73fd8c4d996 --- pykd/pydbgeng.h | 7 +++++++ pykd/pymod.cpp | 2 ++ 2 files changed, 9 insertions(+) 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,