/// <summary>
/// Loads all credentials with filter
/// </summary>
/// <param name="filter">Pointer to a null-terminated string that contains the filter for the returned credentials.
/// Only credentials with a TargetName matching the filter will be returned. The filter specifies a name prefix followed by an asterisk.
/// For instance, the filter "FRED*" will return all credentials with a TargetName beginning with the string "FRED".
/// If NULL is specified, all credentials will be returned.</param>
/// <returns>Credentials collection</returns>
public static IEnumerable <Credential> GetAllCredentials(string filter)
{
return(Credential.LoadAll(filter));
}