code: func NewGenericCredential(targetName string) (result *GenericCredential) {
  	result = new(GenericCredential)
  	result.TargetName = targetName
  	result.Persist = PersistLocalMachine
  	return
  }
docs: // NewGenericCredential creates a new generic credential object with the given name.
  // The persist mode of the newly created object is set to a default value that indicates local-machine-wide storage.
  // The credential object is NOT yet persisted to the Windows credential vault.