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:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.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: callback.ShellBoost.Core.UtilitiesRPC_C_AUTHN_LEVEL
The authorization level.
impersonationLevel
Type: callback.ShellBoost.Core.UtilitiesRPC_C_IMP_LEVEL
The impersonation level.
authenticationList
Type: SystemIntPtr
The authentication list.
capabilities
Type: callback.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