static void Main(string[] args) { Privileges.Check(); Thread t = new Thread(new ThreadStart(Programs.Detect)); t.Start(); }