Click or drag to resize

ComLocalServerInitializeSecurity Method (IntPtr, Int32, IntPtr, RPC_C_AUTHN_LEVEL, RPC_C_IMP_LEVEL, IntPtr, EOLE_AUTHENTICATION_CAPABILITIES, Boolean)

Initializes COM security.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static int InitializeSecurity(
	IntPtr securityDescriptor,
	int authorizationServicesCount,
	IntPtr authorizationServices,
	RPC_C_AUTHN_LEVEL authorizationLevel,
	RPC_C_IMP_LEVEL impersonationLevel,
	IntPtr authenticationList,
	EOLE_AUTHENTICATION_CAPABILITIES capabilities,
	bool throwOnError = true
)

Parameters

securityDescriptor
Type: SystemIntPtr
The security descriptor.
authorizationServicesCount
Type: SystemInt32
The authorization services count.
authorizationServices
Type: SystemIntPtr
The authorization services.
authorizationLevel
Type: ShellBoost.Core.UtilitiesRPC_C_AUTHN_LEVEL
The authorization level.
impersonationLevel
Type: ShellBoost.Core.UtilitiesRPC_C_IMP_LEVEL
The impersonation level.
authenticationList
Type: SystemIntPtr
The authentication list.
capabilities
Type: ShellBoost.Core.UtilitiesEOLE_AUTHENTICATION_CAPABILITIES
The capabilities.
throwOnError (Optional)
Type: SystemBoolean
if set to true errors may be thrown.

Return Value

Type: Int32
0 or an error code.
See Also