mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-19 09:56:10 +00:00
f2ac1ece55
add
74 lines
2.4 KiB
C#
74 lines
2.4 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: simple_binder_1._0_stub.My.MySettings
|
|
// Assembly: stub, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
|
// MVID: A37B88BF-02F8-4FB7-BC03-91631BFAC33B
|
|
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Trojan-Spy.Win32.ICQ.vir-87fef7c1570566305d147476c2dff8b4fde24ef2d82fe8fa52df618ba76d7e99.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 simple_binder_1._0_stub.My
|
|
{
|
|
[GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
|
|
[CompilerGenerated]
|
|
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
|
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);
|
|
}
|
|
}
|
|
return MySettings.defaultInstance;
|
|
}
|
|
}
|
|
}
|
|
}
|