|
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.ProcessesAssembly: 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
)
<DllImportAttribute("kernel32.dll", CharSet := CharSet.Auto, SetLastError := true>]
Public Shared Function SetPriorityClass (
processHandle As IntPtr,
priorityClass As PriorityClass
) As Boolean
public:
[DllImportAttribute(L"kernel32.dll", CharSet = CharSet::Auto, SetLastError = true)]
static bool SetPriorityClass(
IntPtr processHandle,
PriorityClass priorityClass
)
[<DllImportAttribute("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)>]
static member SetPriorityClass :
processHandle : IntPtr *
priorityClass : PriorityClass -> bool
Parameters
- processHandle IntPtr
- A handle to the process.
- priorityClass PriorityClass
- The priority class for the process.
Return Value
BooleanSee Also