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

Method __init__

windows/com.py:334–340  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

332 return Vtable(*[ctypes.cast(x, ctypes.c_void_p) for x in implems]), implems
333
334 def __init__(self):
335 self.verify_implem(self.IMPLEMENT)
336 vtable, implems = self._create_vtable(self.IMPLEMENT)
337 self.vtable = vtable
338 self.implems = implems
339 self.vtable_pointer = ctypes.pointer(self.vtable)
340 self._as_parameter_ = ctypes.addressof(self.vtable_pointer)
341
342 def QueryInterface(self, this, piid, result):
343 """Default ``QueryInterface`` implementation that returns ``self`` if piid is the implemented interface"""

Callers

nothing calls this directly

Calls 2

verify_implemMethod · 0.95
_create_vtableMethod · 0.95

Tested by

no test coverage detected