Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.09 KB

GetPriorityClass.md

File metadata and controls

42 lines (29 loc) · 1.09 KB

Home

Function name : GetPriorityClass

Group: Process and Thread - Library: kernel32


Retrieves the priority class for the specified process. This value, together with the priority value of each thread of the process, determines each thread"s base priority level.


Code examples:

Retrieving the priority class for the current process
Reading and setting the priority class values for the current process and thread

Declaration:

DWORD GetPriorityClass(
  HANDLE hProcess   // handle to process
);  

FoxPro declaration:

DECLARE INTEGER GetPriorityClass IN kernel32;
	INTEGER hProcess  

Parameters:

hProcess [in] Handle to the process.


Return value:

If the function succeeds, the return value is the priority class of the specified process. If the function fails, the return value is zero.