mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-19 19:13:22 +08:00
[0.3.x] added : getSystemVersion
git-svn-id: https://pykd.svn.codeplex.com/svn@84372 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
c2948f8320
commit
a07e0a848d
@ -155,4 +155,21 @@ python::tuple findSymbolAndDisp( ULONG64 offset )
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
python::dict getSystemVersion()
|
||||
{
|
||||
|
||||
kdlib::SystemInfo sysInfo;
|
||||
kdlib::getSystemInfo( sysInfo );
|
||||
|
||||
python::dict dct;
|
||||
dct["majorVersion"] = sysInfo.majorVersion;
|
||||
dct["minorVersion"] = sysInfo.minorVersion;
|
||||
dct["buildNumber"] = sysInfo.buildNumber;
|
||||
dct["buildDescription"] = sysInfo.buildDescription;
|
||||
|
||||
return dct;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
} //end namespace pykd
|
||||
|
@ -25,6 +25,8 @@ python::tuple getSourceLine( kdlib::MEMOFFSET_64 offset = 0 );
|
||||
|
||||
python::tuple findSymbolAndDisp( ULONG64 offset );
|
||||
|
||||
python::dict getSystemVersion();
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
} //end namespace pykd
|
@ -140,8 +140,8 @@ BOOST_PYTHON_MODULE( pykd )
|
||||
"Return the number of seconds the computer has been running" );
|
||||
python::def( "currentTime", &kdlib::getCurrentTime,
|
||||
"Return the number of seconds since the beginning of 1970" );
|
||||
//python::def("getSystemVersion", &getSystemVersion,
|
||||
// "Return systemVersion");
|
||||
python::def("getSystemVersion", &getSystemVersion,
|
||||
"Return systemVersion");
|
||||
|
||||
// Manage target memory access
|
||||
python::def( "addr64", &kdlib::addr64,
|
||||
|
Loading…
Reference in New Issue
Block a user