大网数据广告活动
Windows 系统接口

Authentication Service Constants (RpcDce.h)

· 52CE 我爱测

Defines authentication services by identifying the security package that provides the service, such as NTLMSSP, Kerberos, or Schannel.

Defines authentication services by identifying the security package that provides the service, such as NTLMSSP, Kerberos, or Schannel.

Constant/value Description
RPC_C_AUTHN_NONE 0 No authentication.
RPC_C_AUTHN_DCE_PRIVATE 1 DCE private key authentication.
RPC_C_AUTHN_DCE_PUBLIC 2 DCE public key authentication.
RPC_C_AUTHN_DEC_PUBLIC 4 DEC public key authentication. Reserved for future use.
RPC_C_AUTHN_GSS_NEGOTIATE 9 Snego security support provider.
RPC_C_AUTHN_WINNT 10 NTLMSSP
RPC_C_AUTHN_GSS_SCHANNEL 14 Schannel security support provider. This authentication service supports SSL 2.0, SSL 3.0, TLS, and PCT.
RPC_C_AUTHN_GSS_KERBEROS 16 Kerberos security support provider.
RPC_C_AUTHN_DPA 17 DPA security support provider.
RPC_C_AUTHN_MSN 18 MSN security support provider.
RPC_C_AUTHN_KERNEL 20 Kernel security support provider.
RPC_C_AUTHN_DIGEST 21 Digest security support provider.
RPC_C_AUTHN_NEGO_EXTENDER 30 NEGO extender security support provider.
RPC_C_AUTHN_PKU2U 31 PKU2U security support provider.
RPC_C_AUTHN_MQ 100 MQ security support provider.
RPC_C_AUTHN_DEFAULT 0xFFFFFFFFL The system default authentication service. When this value is specified, COM uses its normal security blanket negotiation algorithm to pick an authentication service. For more information, see Security Blanket Negotiation.

Remarks

These constants are used in the SOLE_AUTHENTICATION_SERVICE and the SOLE_AUTHENTICATION_INFO structures. The SOLE_AUTHENTICATION_SERVICE structure is passed by the server to the CoInitializeSecurity function and can be retrieved by the CoQueryAuthenticationServices function. A pointer to a SOLE_AUTHENTICATION_INFO structure is passed by the client to CoInitializeSecurity. For more information on the security packages identified by these values, such as NTLMSSP and Kerberos, see COM and Security Packages.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header RpcDce.h

See also

CoInitializeSecurity

CoQueryAuthenticationServices

IClientSecurity

SOLE_AUTHENTICATION_INFO

SOLE_AUTHENTICATION_SERVICE

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。