AuthenticationLevel

Establece el nivel de autenticación para las aplicaciones que no llaman a CoInitializeSecurity o para las aplicaciones que llaman a CoInitializeSecurity y especifican un AppID.

Entrada del Registro

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID
   {AppID_GUID}
      AuthenticationLevel = value

Comentarios

Se trata de un valor de REG_DWORD equivalente a las constantes de RPC_C_AUTHN_LEVEL.

Valor Constante
1 RPC_C_AUTHN_LEVEL_NONE
2 RPC_C_AUTHN_LEVEL_CONNECT
3 RPC_C_AUTHN_LEVEL_CALL
4 RPC_C_AUTHN_LEVEL_PKT
5 RPC_C_AUTHN_LEVEL_PKT_INTEGRITY
6 RPC_C_AUTHN_LEVEL_PKT_PRIVACY

 

El valor AuthenticationLevel es similar al valor LegacyAuthenticationLevel . Si el valor AuthenticationLevel está presente, se usa en lugar del valor LegacyAuthenticationLevel para ese AppID.

Si el valor AuthenticationLevel es del tipo incorrecto o fuera del intervalo, Se produce un error en CoInitializeSecurity , lo que provoca un error en las referencias de la interfaz. Esto impide que la aplicación realice llamadas en absoluto (entre apartamentos, subprocesos, procesos cruzados o entre equipos).

Los valores AuthenticationLevel y AccessPermission son independientes. Si uno no está presente, se usa el valor predeterminado. Las reglas siguientes enumeran la interacción entre el valor AuthenticationLevel y el valor AccessPermission :

Constantes de nivel de autenticación

LegacyAuthenticationLevel

Registro de servidores COM

Seguridad en COM