//设置可视化效果,参数value设为4即可 public void SetCurrentEffectPreset(int value) { WindowsIdentity identiry = WindowsIdentity.GetCurrent(); String path = String.Format(@"{0}\Software\Microsoft\MediaPlayer\Preferences", identiry.User.Value); RegistryKey key = Registry.Users.OpenSubKey(path, true); if (key != null) { key.SetValue("CurrentEffectPreset", value, RegistryValueKind.DWord); } }
浙公网安备 33010602011771号