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

Method spawn_instance

windows/winobject/wmi.py:110–117  ·  view source on GitHub ↗

Create a new object of the class represented by the current :class:`WmiObject` :returns: :class:`WmiObject`

(self)

Source from the content-addressed store, hash-verified

108 return self.put_variant(name, variant_value)
109
110 def spawn_instance(self):
111 """Create a new object of the class represented by the current :class:`WmiObject`
112
113 :returns: :class:`WmiObject`
114 """
115 instance = type(self)()
116 self.SpawnInstance(0, instance)
117 return instance
118
119 @property
120 def genus(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected