Skip to main content

XtfGetCredentialInfoList

Returns an XtfNetworkCredentials object that contains the list of credentials currently stored on the console.

Syntax

Parameters

address
Type: LPCWSTR
[in] Address of the console. credentialInfo
Type: XtfNetworkCredentials*
[out] An XtfNetworkCredentials object that contains the list of credentials currently stored on the console.

Return value

Type: HRESULT A return value of S_OK indicates the function succeeded and that credential information can be retrieved from the credentialInfo object. Any other value indicates an unexpected error occurred.

Remarks

Use XtfAddCredential to add credentials. Use XtfRemoveCredential to remove credentials. Use XtfGetCredentialInfoList, XtfGetCredentialInfoCount, XtfGetCredentialServerName, and XtfGetCredentialUserName to enumerate the current list of stored credentials. Use XtfCloseCredentialInfoList to free the XtfNetworkCredentials returned by XtfGetCredentialInfoList.
XtfGetCredentialInfoList retrieves all of the information from the console. XtfGetCredentialServerName, and XtfGetCredentialUserName simply iterate across that retrieved information.
When you have retrieved the values you needed, use XtfCloseCredentialInfoList to free resources associated with the returned XtfNetworkCredentials object.

Requirements

Header: xtfapi.h Library: XtfApi.lib Supported platforms: Windows (for XBOX console tools)

See also

Run from PC Deployment (NDA topic)
XTF Transport Errors (NDA topic)
Additional Xtf APIs
Last modified on August 20, 2026