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

Method handle

windows/utils/pythonutils.py:92–104  ·  view source on GitHub ↗

An handle on the object :type: HANDLE .. note:: The handle is automaticaly closed when the object is destroyed

(self)

Source from the content-addressed store, hash-verified

90
91 @property
92 def handle(self):
93 """An handle on the object
94
95 :type: HANDLE
96
97 .. note::
98 The handle is automaticaly closed when the object is destroyed
99 """
100 if hasattr(self, "_handle"):
101 return self._handle
102 self._handle = self._get_handle()
103 dbgprint("Open handle {0} for {1}".format(hex(self._handle), self), "HANDLE")
104 return self._handle
105
106 def wait(self, timeout=gdef.INFINITE):
107 """Wait for the object"""

Callers

nothing calls this directly

Calls 1

_get_handleMethod · 0.95

Tested by

no test coverage detected