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

Method threads

windows/winobject/process.py:116–122  ·  view source on GitHub ↗

The threads of the process :type: [:class:`WinThread`] -- A list of Thread

(self)

Source from the content-addressed store, hash-verified

114
115 @property
116 def threads(self):
117 """The threads of the process
118
119 :type: [:class:`WinThread`] -- A list of Thread
120 """
121 owner_pid = self.pid
122 return [WinThread._from_THREADENTRY32(th, owner=self) for th in windows.system.enumerate_threads_generator() if th.th32OwnerProcessID == owner_pid]
123
124 def virtual_alloc(self, size):
125 raise NotImplementedError("virtual_alloc")

Callers

nothing calls this directly

Calls 2

_from_THREADENTRY32Method · 0.80

Tested by

no test coverage detected