Autor Beitrag
christoph
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 28

Win XP(SPack1),Win 2000(Spack3)
Delphi 6(Spack2)
BeitragVerfasst: Di 13.05.03 19:14 
Hallo wie kann man es eigentlich realisieren das mein Programm nicht mit der Priorität 'NORMAL' sondern mit der Priorität 'HÖHER ALS NORMAL' läuft ???

Für Antworten jetzt schon mal Vielen Dank im Vorraus......

Christoph
Simon Joker
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 236
Erhaltene Danke: 1



BeitragVerfasst: Mi 14.05.03 10:25 
Hi

such in der sdk mal nach:

BOOL SetPriorityClass(
HANDLE hProcess, // handle to the process
DWORD dwPriorityClass // priority class value
);
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 14.05.03 10:51 
Hast du einen Grund dafür?
TheNeon
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 408

Windows
VS2010 C#
BeitragVerfasst: Di 20.07.04 13:12 
geht das nun oder nicht, weil ich es jetzt auch bräuchte :les:
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Di 20.07.04 13:23 
Simon Joker hat dir doch schon einen Ansatz geliefert! Suche im MSDN SETPRIORITYCLASS
Und wenn man dann ein wenig rumklickt erst hier dann
Suche im MSDN HIER, kann man folgenden Code erstellen:SetPriorityClass(GetCurrentProcess,REALTIME_PRIORITY_CLASS);

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
Udontknow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: Di 20.07.04 13:28 
Ich empfehle Luckies Thread-Tutorial für alle, die den "Faden" verloren haben... :wink:

Cu,
Udontknow
TheNeon
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 408

Windows
VS2010 C#
BeitragVerfasst: Di 20.07.04 22:33 
maxk hat folgendes geschrieben:
Simon Joker hat dir doch schon einen Ansatz geliefert! Suche im MSDN SETPRIORITYCLASS
Und wenn man dann ein wenig rumklickt erst hier dann
Suche im MSDN HIER, kann man folgenden Code erstellen:SetPriorityClass(GetCurrentProcess,REALTIME_PRIORITY_CLASS);

also auf dein Beispiel bin ich auch gekommen, nur bietet Delphi nur
IDLE, NORMAL, HIGH, REALTIME
an. Windows allerdings zusätzlich noch HÖHER ALS NORMAL & NIEDRIGER ALS NORMAL ..... geht mir darum, wie man diese beiden Prioritäten hinbekommt :gruebel:
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Di 20.07.04 22:40 
ausblenden Delphi-Quelltext
1:
2:
const BELOW_NORMAL_PRIORITY_CLASS = $00004000;
      ABOVE_NORMAL_PRIORITY_CLASS = $00008000;
Das sollte helfen :D

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
TheNeon
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 408

Windows
VS2010 C#
BeitragVerfasst: Mi 21.07.04 01:09 
:lol: geht doch :wink: (( nicht falsch verstehen :) ))

thanks
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 21.07.04 15:11 
Aber Achtung, diese kennt nur Windows2000 und höher. Also erst prüfen, um was es für ein OS sich handelt. Oder den Rückgabewert von SetPriorityClass unbedingt prüfen.