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

Method process

windows/winobject/handle.py:17–23  ·  view source on GitHub ↗

The process possessing the handle :type: :class:`WinProcess `

(self)

Source from the content-addressed store, hash-verified

15 """A handle of the system"""
16 @windows.utils.fixedpropety
17 def process(self):
18 """The process possessing the handle
19
20 :type: :class:`WinProcess <windows.winobject.process.WinProcess>`"""
21 # "TODO: something smart ? :D"
22 # return [p for p in windows.system.processes if p.pid == self.dwProcessId][0]
23 return windows.WinProcess(pid=self.dwProcessId)
24
25 @property
26 def pid(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected