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

Function init

windows/com.py:25–33  ·  view source on GitHub ↗

Init COM with some default parameters

()

Source from the content-addressed store, hash-verified

23# "-".join("{:02X}".format(c) for c in struct.unpack("<IHHHBBBBBB", x))
24
25def init():
26 """Init COM with some default parameters"""
27 try:
28 t = winproxy.CoInitializeEx()
29 except WindowsError as e:
30 t = e.winerror
31 if t:
32 return t & 0xffffffff
33 return initsecurity()
34
35def initsecurity(): # Should take some parameters..
36 return winproxy.CoInitializeSecurity(0, -1, None, 0, 0, RPC_C_IMP_LEVEL_IMPERSONATE, 0,0,0)

Callers

nothing calls this directly

Calls 1

initsecurityFunction · 0.85

Tested by

no test coverage detected