GetPriorityClass

Process ››
Parent Previous Next

Язык программирования FreeBasic

 

GetPriorityClass (API)

GetPriorityClass(hprocess)

Функция получает приоритет выполнения процесса.Возможные возвращаемые значения:

HIGH_PRIORITY_CLASS - 128
IDLE_PRIORITY_CLASS - 64
NORMAL_PRIORITY_CLASS - 32
REALTIME_PRIORITY_CLASS - 256
ABOVE_NORMAL_PRIORITY_CLASS - 32768
BELOW_NORMAL_PRIORITY_CLASS - 16384

hprocess - хендл процесса, может быть получен функцией Open_Process.

Пример:


#Include "window9.bi"
Dim As HANDLE hpr,pr=InitProcess
If pr<>-1 And FirstProcess(pr)<>0 Then
 Do
  hpr=Open_Process(GetIDProcess())
  ? GetNameProcess(),GetPriorityClass(hpr)
 Loop Until  NextProcess(pr)=0
 CloseHandle(pr): CloseHandle(hpr)
EndIf
Sleep



http://mneniya.ucoz.ru/

Created with the Personal Edition of HelpNDoc: Easily create PDF Help documents