2007年5月25日金曜日

自身のプロセス優先度を変更する

まず、自分自身のプロセスを取得
Process thisProcess = System.Diagnostics.Process.GetCurrentProcess();

あとは、こいつのPriorityClassを変えるだけ。
thisProcess.PriorityClass = ProcessPriorityClass.AboveNormal;