MCPcopy Create free account
hub / github.com/enthought/comtypes / RegisterActiveObject

Function RegisterActiveObject

comtypes/client/_activeobj.py:49–54  ·  view source on GitHub ↗
(
    punk: IUnknown, progid: _UnionT[str, type[CoClass], GUID], weak: bool = True
)

Source from the content-addressed store, hash-verified

47
48
49def RegisterActiveObject(
50 punk: IUnknown, progid: _UnionT[str, type[CoClass], GUID], weak: bool = True
51) -> int:
52 clsid = GUID.from_progid(progid)
53 flags = comtypes.ACTIVEOBJECT_WEAK if weak else comtypes.ACTIVEOBJECT_STRONG
54 return comtypes.RegisterActiveObject(punk, clsid, flags)

Callers

nothing calls this directly

Calls 1

from_progidMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…