[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
This commit is contained in:
SND\EreTIk_cp 2014-01-23 14:53:21 +00:00 committed by Mikhail I. Izmestev
parent 0f736d0f8d
commit 9f6cd6996f
2 changed files with 9 additions and 0 deletions

View File

@ -290,6 +290,13 @@ unsigned long getCurrentTime()
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
inline
std::wstring getExtensionSearchPath()
{
AutoRestorePyState pystate;
return kdlib::getExtensionSearchPath();
}
inline inline
kdlib::EXTENSION_ID loadExtension(const std::wstring &extPath ) kdlib::EXTENSION_ID loadExtension(const std::wstring &extPath )
{ {

View File

@ -99,6 +99,8 @@ BOOST_PYTHON_MODULE( pykd )
// DbgEng services // DbgEng services
python::def( "setSymSrvDir", pykd::setSymSrvDir, python::def( "setSymSrvDir", pykd::setSymSrvDir,
"Set directory of SYMSRV.dll library.\nUsually this is a directory of WinDbg"); "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, python::def( "loadExt", pykd::loadExtension,
"Load a WinDBG extension. Return handle of the loaded extension" ); "Load a WinDBG extension. Return handle of the loaded extension" );
python::def( "removeExt", pykd::removeExtension, python::def( "removeExt", pykd::removeExtension,