Click or drag to resize
Xcalibur Systems LLC Logo

ProcessHelperSetProcessAffinityMask Method

Sets a processor affinity mask for the threads of the specified process.

SetProcessAffinityMask function


Namespace: Xcalibur.NativeMethods.V2.Processes
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[DllImportAttribute("kernel32.dll")]
public static bool SetProcessAffinityMask(
	IntPtr processHandle,
	IntPtr processMask
)

Parameters

processHandle  IntPtr
A handle to the process whose affinity mask is to be set. This handle must have the access right.
processMask  IntPtr
The affinity mask for the threads of the process.

Return Value

Boolean
If the function fails, the return value is zero. To get extended error information, call .
See Also