System Diagnostics C# by API

using System;
using System.Diagnostics;
class MainClass
{
   public static void Main()
   {
      Process thisProc = Process.GetCurrentProcess();
      thisProc.PriorityClass = ProcessPriorityClass.High;
      Console.WriteLine("    new priority class: {0}", thisProc.PriorityClass);
   }
}