//Variables
ValRetour est un entier
hCurrentProcess est un entier
//Récupère le handle du process
hCurrentProcess = API("Kernel32","GetCurrentProcess")
//Modifie la priorité du process
//ABOVE_NORMAL_PRIORITY_CLASS=au dessus de normal
ValRetour = API("Kernel32", "SetPriorityClass", hCurrentProcess, 0x00008000)
//IDLE_PRIORITY_CLASS=Basse
//Ret = api("Kernel32", "SetPriorityClass", hCurrentProcess, 0x00000040)
//BELOW_NORMAL_PRIORITY_CLASS=au dessous de normal
//Ret = api("Kernel32", "SetPriorityClass", hCurrentProcess, 0x00004000)
//NORMAL_PRIORITY_CLASS=Normal
//Ret = api("Kernel32", "SetPriorityClass", hCurrentProcess, 0x00000020)
//HIGH_PRIORITY_CLASS=Haute
//Ret = api("Kernel32", "SetPriorityClass", hCurrentProcess, 0x00000080)
//REALTIME_PRIORITY_CLASS=Temps réel
//Ret = api("Kernel32", "SetPriorityClass", hCurrentProcess, 0x00000100)
//Controle de l`erreur
SI ValRetour = 0 ALORS
Erreur("Impossible de modifier la priorité.")
FIN
|