Click or drag to resize
Xcalibur Systems LLC Logo

ProcessHelperSetPriorityClass Method

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.

SetPriorityClass function


Namespace: Xcalibur.NativeMethods.V2.Processes
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[DllImportAttribute("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
public static bool SetPriorityClass(
	IntPtr processHandle,
	PriorityClass priorityClass
)

Parameters

processHandle  IntPtr
A handle to the process.
priorityClass  PriorityClass
The priority class for the process.

Return Value

Boolean
See Also