CoInitializeSecurity(sd, authInfo, reserved1, authnLevel, impLevel, authInfo, capabilities, reserved2)
Registers security and sets the default security values.
Parameters
sd : PySECURITY_DESCRIPTOR
authInfo : object
A value of None tells COM to choose which authen
tication services to use. An empty list means use no services.
reserved1 : object
Must be None
authnLevel : int
The default authen
tication level for proxies. On the server side, COM will fail calls that arrive at a lower level. All calls to AddRef and Release are made at this level.
impLevel : int
The default impersonation level for proxies. This value is not checked on the server side. AddRef and Release calls are made with this impersonation level so even security aware apps should set this carefully. Setting IUnknown security only affects calls to QueryInterface, not AddRef or Release.
authInfo : object
Must be None
capabilities : int
Additional client and/or server-side capabilities. Any set of EOAC flags may be passed. Currently only EOAC_MUTUAL_AUTH, EOAC_SECURE_REFS, and EOAC_NONE are defined
reserved2 : object
Must be None