/// <summary>
        /// Gets a specific credential.
        /// The number of available credentials is retrieved by <see cref="GetCredentialCount"/>.
        /// This method is used by the Logon UI or Credential UI in conjunction with GetCredentialCount to enumerate the credentials.
        /// </summary>
        /// <param name="dwIndex">The zero-based index of the credential within the set of credentials enumerated for this credential provider.</param>
        /// <param name="ppcpc">The address of a pointer to a ICredentialProviderCredential instance representing the credential.</param>
        /// <returns><see cref="HRESULT"/></returns>
        public virtual int GetCredentialAt(uint dwIndex, out ICredentialProviderCredential ppcpc)
        {
            Logger.Write($"dwIndex: {dwIndex}");

            ppcpc = view.CreateCredential((int)dwIndex);

            return(HRESULT.S_OK);
        }