Autor Beitrag
AeroX
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 68



BeitragVerfasst: Mi 12.03.08 16:40 
hallo,
ich möchte gerne alle prozesse meines pc's auf "niedrig" machen.

habe schon ma angefangen:

ausblenden C#-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
using System;
using System.Diagnostics;

namespace ConsoleApplication1
{
    class Program
    {
        static string pp;

        static void Main(string[] args)
        {
            foreach (Process process in Process.GetProcesses())
            {
                try
                {
                    if ( [HIER WEIß ICH NICHT] )
                    {
                        process.PriorityClass = "low"// ich weiß nicht ob "low" möglich ist
                    }
                }
                catch (Exception e)
                {
                    Console.WriteLine(e.ToString());
                }
            }
            Console.ReadLine();
        }
    }
}


Moderiert von user profile iconChristian S.: Code- durch C#-Tags ersetzt
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Mi 12.03.08 16:52 
Bist du dir ganz sicher, dass du weißt, was du tust? Die Priorität von Prozessen wie csrss.exe zu ändern, könnte ziemlich üble Konsequenzen haben (wobei du dazu eh SYSTEM-Privilegien bräuchtest...). Meinst du also wirklich "alle"?

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell
AeroX Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 68



BeitragVerfasst: Mi 12.03.08 18:43 
aso,
dann nur die, die nicht vom system sind