15 Ağustos 2011 Pazartesi

c# ile windows 7 şeffaf görev çubuğu görünümünü kapatma

Windows 7 ile gelen yeni bir özellik olan şeffaflık kimine göre zulümdür.c# ile bunu kapatma kodunu burada yazıyorm.
Kodlar için System.Diagnostics kütüphanesini eklemeniz lazım.

Process program = new Process();
program.StartInfo.Verb = "runas";
program.StartInfo.FileName = @"C:\Windows\System32\cmd.exe";
program.StartInfo.Arguments = "/C net stop uxsms";
program.Start();

Açmak içinse Argumentsdeki stopu start yapıyoruz.

Process program = new Process();
program.StartInfo.Verb = "runas";
program.StartInfo.FileName = @"C:\Windows\System32\cmd.exe";
program.StartInfo.Arguments = "/C net start uxsms";
program.Start();

Hiç yorum yok:

Yorum Gönder