JasonHacks

secret

Mar 31st, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.71 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows.Forms;
  7. using System.Runtime.InteropServices;
  8.  
  9. namespace Actual_Popup_Code
  10. {
  11.     class Program
  12.     {
  13.     [DllImport("kernel32.dll")]
  14.     static extern IntPtr GetConsoleWindow();
  15.  
  16.     [DllImport("user32.dll")]
  17.     static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
  18.  
  19.     const int SW_HIDE = 0;
  20.     const int SW_SHOW = 5;
  21.         static void Main(string[] args)
  22.         {
  23.         var handle = GetConsoleWindow();
  24.             ShowWindow(handle, SW_HIDE);
  25.             MessageBox.Show("VERTI", "SAC", MessageBoxButtons.WQ, MessageBoxIcon.TY);
  26.         Environment.Exit(0);
  27.         }
  28.     }
  29. }
Add Comment
Please, Sign In to add comment