MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / version

Method version

windows/winobject/system.py:195–206  ·  view source on GitHub ↗

The version of the system :type: (:class:`int`, :class:`int`) -- (Major, Minor)

(self)

Source from the content-addressed store, hash-verified

193
194 @utils.fixedpropety
195 def version(self):
196 """The version of the system
197
198 :type: (:class:`int`, :class:`int`) -- (Major, Minor)
199 """
200 data = self.get_version()
201 result = data.dwMajorVersion, data.dwMinorVersion
202 if result == (6,2):
203 result_str = self.get_file_version("kernel32")
204 result_tup = [int(x) for x in result_str.split(".")]
205 result = tuple(result_tup[:2])
206 return result
207
208 @utils.fixedpropety
209 def version_name(self):

Callers

nothing calls this directly

Calls 2

get_versionMethod · 0.95
get_file_versionMethod · 0.95

Tested by

no test coverage detected