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

Method __init__

windows/winobject/process.py:744–753  ·  view source on GitHub ↗
(self, tid=None, handle=None, owner_pid=None, owner=None)

Source from the content-addressed store, hash-verified

742 """Represent a thread """
743
744 def __init__(self, tid=None, handle=None, owner_pid=None, owner=None):
745 if tid is None and handle is None:
746 raise ValueError("Need at least <pid> or <handle> to create a {0}".format(type(self).__name__))
747
748 if tid is not None: self._tid = tid
749 if handle is not None: self._handle = handle
750 if owner is not None: self._owner = owner
751 if owner_pid is not None: self._owner_pid = owner_pid
752 if owner_pid is None and owner:
753 self._owner_pid = owner.pid
754
755 @classmethod
756 def _from_THREADENTRY32(cls, entry, owner=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected