Gets the count of credentials stored in an XtfNetworkCredentials object returned by XtfGetCredentialInfoList.
HRESULT XtfGetCredentialCount(
XtfNetworkCredentials credentialInfo,
UINT32 *count
)
credentialInfo
Type: XtfNetworkCredentials
[in] An XtfNetworkCredentials object created by calling XtfGetCredentialInfoList.
count
Type: UINT32 *
[out] Number of credentials stored in the credentialInfo object.
Type: HRESULT
A return value of S_OK indicates the function succeeded. Any other value indicates an unexpected error occurred.
Use XtfAddCredential to add credentials. Use XtfRemoveCredential to remove credentials. Use XtfGetCredentialInfoList, XtfGetCredentialCount, XtfGetCredentialServerName, and XtfGetCredentialUserName to enumerate the current list of stored credentials. Use XtfCloseCredentialInfoList to free the XtfNetworkCredentials returned by XtfGetCredentialInfoList.
See XtfGetCredentialInfoList for an example of how to use this API.
Note When the console is rebooted all stored credentials are lost and must be added again.
Header: Declared in XtfApi.h.
Library: Use XtfApi.lib.