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

Method bitness

windows/winobject/process.py:652–659  ·  view source on GitHub ↗

The bitness of the process :type: :class:`int` -- 32 or 64

(self)

Source from the content-addressed store, hash-verified

650
651 @utils.fixedpropety
652 def bitness(self):
653 """The bitness of the process
654
655 :type: :class:`int` -- 32 or 64
656 """
657 import platform
658 bits = platform.architecture()[0]
659 return int(bits[:2])
660
661 def virtual_alloc(self, size, prot=PAGE_EXECUTE_READWRITE):
662 """Allocate memory in the process

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected