XtfGetCredentialInfoCount
获取 XtfGetCredentialInfoList 返回的 XtfNetworkCredentials
对象中存储的凭据计数。
语法
HRESULT XtfGetCredentialInfoCount(
XtfNetworkCredentials credentialInfo,
UINT32* count
)
参数
credentialInfo
类型:XtfNetworkCredentials
[in] 通过调用 XtfGetCredentialInfoList 创建的 XtfNetworkCredentials
对象。
count
类型:UINT32*
[out] credentialInfo 中存储的凭据数。
返回值
类型:HRESULT
如果成功,返回 S_OK
;否则返回 HRESULT 错误代码。
备注
使用此函数获取存储在由 XtfGetCredentialInfoList 函数返回的 XtfNetworkCredentials
对象中的凭据的数量。 将此函数与 XtfGetCredentialInfoList
、XtfGetCredentialServerName 和 XtfGetCredentialUserName 函数结合使用,枚举主机上存储的凭据的当前列表。 还可以使用 XtfAddCredential 添加凭据,并使用 XtfRemoveCredential 删除凭据。
完成后,请使用 XtfCloseCredentialInfoList 来释放 XtfGetCredentialInfoList
返回的 XtfNetworkCredentials
对象。
有关演示如何管理和枚举存储的凭据的示例,请参阅 XtfGetCredentialInfoList。
要求
头文件:xtfapi.h
库:XtfApi.lib
支持平台:Windows(适用于 Xbox 主机工具)