mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-23 03:46:10 +00:00
f2ac1ece55
add
75 lines
2.4 KiB
C#
75 lines
2.4 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: LFSTweak.My.MySettings
|
|
// Assembly: LFSTweak, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
|
// MVID: C77C2A36-D42F-41E0-A8F4-0FAB7DAB4ECE
|
|
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare.00004-msil\Virus.Win32.Sality.sil-52c1c08a641f4eea7c4c4adfe074b30e92d254f958aa67f4b0ded38b7db3a24d.exe
|
|
|
|
using Microsoft.VisualBasic.ApplicationServices;
|
|
using Microsoft.VisualBasic.CompilerServices;
|
|
using System;
|
|
using System.CodeDom.Compiler;
|
|
using System.ComponentModel;
|
|
using System.Configuration;
|
|
using System.Diagnostics;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Threading;
|
|
|
|
namespace LFSTweak.My
|
|
{
|
|
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
|
[GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
|
|
[CompilerGenerated]
|
|
internal sealed class MySettings : ApplicationSettingsBase
|
|
{
|
|
private static MySettings defaultInstance = (MySettings) SettingsBase.Synchronized((SettingsBase) new MySettings());
|
|
private static bool addedHandler;
|
|
private static object addedHandlerLockObject = RuntimeHelpers.GetObjectValue(new object());
|
|
|
|
[DebuggerNonUserCode]
|
|
public MySettings()
|
|
{
|
|
}
|
|
|
|
[DebuggerNonUserCode]
|
|
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
|
private static void AutoSaveSettings(object sender, EventArgs e)
|
|
{
|
|
if (!MyProject.Application.SaveMySettingsOnExit)
|
|
return;
|
|
MySettingsProperty.Settings.Save();
|
|
}
|
|
|
|
public static MySettings Default
|
|
{
|
|
get
|
|
{
|
|
if (!MySettings.addedHandler)
|
|
{
|
|
object handlerLockObject = MySettings.addedHandlerLockObject;
|
|
ObjectFlowControl.CheckForSyncLockOnValueType(handlerLockObject);
|
|
Monitor.Enter(handlerLockObject);
|
|
try
|
|
{
|
|
if (!MySettings.addedHandler)
|
|
{
|
|
MyProject.Application.Shutdown += (ShutdownEventHandler) ((sender, e) =>
|
|
{
|
|
if (!MyProject.Application.SaveMySettingsOnExit)
|
|
return;
|
|
MySettingsProperty.Settings.Save();
|
|
});
|
|
MySettings.addedHandler = true;
|
|
}
|
|
}
|
|
finally
|
|
{
|
|
Monitor.Exit(handlerLockObject);
|
|
}
|
|
}
|
|
MySettings defaultInstance = MySettings.defaultInstance;
|
|
return defaultInstance;
|
|
}
|
|
}
|
|
}
|
|
}
|