mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-22 19:36:11 +00:00
70 lines
2.3 KiB
C#
70 lines
2.3 KiB
C#
|
// Decompiled with JetBrains decompiler
|
|||
|
// Type: WindowsApplication1.My.MySettings
|
|||
|
// Assembly: Services, Version=1.0.0.0, Culture=neutral
|
|||
|
// MVID: 9B55F703-4EB8-46BB-927B-A4635A31F4B1
|
|||
|
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00002-msil\Trojan-Dropper.Win32.Injector.ecsd-79d34bc92c1ccd50c2ace1b8d0affe89f1e3708f29417e71d554c784036e470d.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 WindowsApplication1.My
|
|||
|
{
|
|||
|
[GeneratedCode("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
|
|||
|
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
|||
|
[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]
|
|||
|
[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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|