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

Method __init__

windows/winobject/process.py:985–992  ·  view source on GitHub ↗
(self, pid=None, handle=None, name=None, ppid=None)

Source from the content-addressed store, hash-verified

983class WinProcess(Process):
984 """A Process on the system"""
985 def __init__(self, pid=None, handle=None, name=None, ppid=None):
986 if pid is None and handle is None:
987 raise ValueError("Need at least <pid> or <handle> to create a {0}".format(type(self).__name__))
988
989 if pid is not None: self._pid = pid
990 if handle is not None: self._handle = handle
991 if name is not None: self._name = name
992 if ppid is not None: self._ppid = ppid
993
994
995 @staticmethod

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected