Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.16 KB

SetPriorityClass.md

File metadata and controls

46 lines (32 loc) · 1.16 KB

Home

Function name : SetPriorityClass

Group: Process and Thread - Library: kernel32


Sets 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:

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

Declaration:

BOOL SetPriorityClass(
  HANDLE hProcess,        // handle to process
  DWORD dwPriorityClass   // priority class
);  

FoxPro declaration:

DECLARE INTEGER SetPriorityClass IN kernel32;
	INTEGER hProcess,;
	INTEGER dwPriorityClass  

Parameters:

hProcess [in] Handle to the process.

dwPriorityClass [in] Specifies the priority class for the process. This parameter can be one of the predefined values.


Return value:

If the function succeeds, the return value is nonzero. If the function fails, the return value is zero.