原文来自MSDN Library for Visual Studio 2008 SP1,翻译部分仅为个人观点,想要看更多信息请看MSDN,如有版权问题请联系QQ 643166601,邮件643166601@qq.com
COM
SOLE_AUTHENTICATION_INFO
See Also
Identifies an authentication service, authorization service, and the authentication information for the specified authentication service.
标识一个身份认证服务,授权服务,和指定的身份认证信息的身份验证服务。
The SOLE_AUTHENTICATION_LIST structure, which is pointed to by the pAuthList parameter of CoInitializeSecurity, contains an array of SOLE_AUTHENTICATION_INFO structures.
这个SOLE_AUTHENTICATION_LIST结构,它是通过CoInitializeSecurity的pAuthList参数指定的,包含一个SOLE_AUTHENTICATION_INFO结构体的数组。
Copy Code
typedef struct tagSOLE_AUTHENTICATION_INFO {
DWORD dwAuthnSvc;
DWORD dwAuthzSvc;
void * pAuthInfo;
} SOLE_AUTHENTICATION_INFO;
Members
dwAuthnSvc
The authentication service.
这是身份验证服务。
It may contain a single value taken from the list of RPC_C_AUTHN_xxx constants.
它可以包含来自RPC_C_AUTHN_xxx常量的列表的一个单一值。
dwAuthzSvc
The authorization service.
这是授权服务。
It may contain a single value taken from the list of RPC_C_AUTHZ_xxx constants.
它可以包含来自RPC_C_AUTHZ_xxx常量的列表的一个单一值。
pAuthInfo
A pointer to the authentication information, whose type is specific to the authentication service identified by dwAuthnSvc.
一个指针指向身份验证信息,它的类型是通过dwAuthnSvc指定身份验证服务标识符。
For SChannel (RPC_C_AUTHN_GSS_SCHANNEL), this member either points to a CERT_CONTEXT that contains the client's certificate or is NULL if the client has no certificate or wishes to remain anonymous to the server.
对于SChannel (RPC_C_AUTHN_GSS_SCHANNEL),这个参数要么指向一个CERT_CONTEXT包含客户端证书要么如果客户端没有证书或希望保持匿名到服务器,是NULL。
For NTLMSSP (RPC_C_AUTHN_WINNT) and Kerberos (RPC_C_AUTHN_GSS_KERBEROS), this member points to a SEC_WINNT_AUTH_IDENTITY (or SEC_WINNT_AUTH_IDENTITY_EX ) structure containing the user name and password.
对于NTLMSSP (RPC_C_AUTHN_WINNT)和Kerberos (RPC_C_AUTHN_GSS_KERBEROS),这个成员指向一个EC_WINNT_AUTH_IDENTITY (或 SEC_WINNT_AUTH_IDENTITY_EX )结构体包含用户名和密码。
For Snego (RPC_C_AUTHN_GSS_NEGOTIATE), this member is either NULL or points to a SEC_WINNT_AUTH_IDENTITY_EX structure.
对于Snego (RPC_C_AUTHN_GSS_NEGOTIATE),这个成员是NULL或指向一个SEC_WINNT_AUTH_IDENTITY_EX结构体。
If it is NULL, Snego will pick a list of authentication services based on those available on the client machine.
如果是NULL,Snego将挑选一个基于可利用的客户机的身份验证服务的列表。
If non-NULL, the structure's PackageList member must point to a string containing a comma-separated list of authentication service names and the PackageListLength member must give the number of bytes in the PackageList string.
如果非NULL,这个结构体的PackageList成员必须只小羊一个字符串包含一个逗号分隔的列表的身份验证服务名称和PackageListLength成员必须给出在PackageList字符串中的以字节为单位的数量。
For authentication services that DCOM doesn't know about, pAuthInfo must be set to NULL and DCOM will use the process identity to represent the client.
对于身份验证服务的DCOM不知道关于,pAuthInfo必须设置为NULL和DCOM将使用进程标识符来代表客户段。
For more information, see COM and Security Packages.
更多信息,请看 COM and Security Packages。
Requirements
For an explanation of the requirement values, see Requirements (COM).
Windows NT/2000/XP: Requires Windows 2000 or later.
Windows 95/98: Unsupported.
Header: Declared in objidl.h.
See Also
Reference
RPC_C_AUTHN_xxx
RPC_C_AUTHZ_xxx
CoInitializeSecurity
Send comments about this topic to Microsoft.