mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
[0.3.x] fixed : issue # 13745 ( the method module.getVersion is missed )
git-svn-id: https://pykd.svn.codeplex.com/svn@90850 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
89006d9608
commit
9512318443
@ -666,6 +666,8 @@ BOOST_PYTHON_MODULE( pykd )
|
||||
"Returns a flag that the module is a user-mode module" )
|
||||
.def("queryVersion", ModuleAdapter::getVersionInfo,
|
||||
"Return string from the module's version resources" )
|
||||
.def("getVersion", ModuleAdapter::getVersion,
|
||||
"Return tuple of the module's file version")
|
||||
.def("getFixedFileInfo", ModuleAdapter::getFixedFileInfo,
|
||||
"Return FixedFileInfo" )
|
||||
.def("__getattr__", ModuleAdapter::getSymbolVa,
|
||||
|
@ -147,6 +147,14 @@ struct ModuleAdapter : public kdlib::Module
|
||||
return module.getVersionInfo(value);
|
||||
}
|
||||
|
||||
static python::tuple getVersion(kdlib::Module& module)
|
||||
{
|
||||
AutoRestorePyState pystate;
|
||||
unsigned long a1, a2, a3, a4;
|
||||
module.getFileVersion(a1, a2, a3, a4);
|
||||
return python::make_tuple(a1, a2, a3, a4);
|
||||
}
|
||||
|
||||
static FixedFileInfoPtr getFixedFileInfo( kdlib::Module& module );
|
||||
|
||||
static std::wstring print( kdlib::Module& module );
|
||||
|
Loading…
Reference in New Issue
Block a user