WMI--Windows API--SOLE_AUTHENTICATION_INFO

150 篇文章 0 订阅
18 篇文章 0 订阅

原文来自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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值