Kernel32SetThreadSelectedCpuSets Method

Sets the selected CPU Sets assignment for the specified thread. This assignment overrides the process default assignment, if one is set.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", ExactSpelling = true)]
public static bool SetThreadSelectedCpuSets(
	IntPtr hThread,
	uint[] cpuSetIds,
	uint cpuSetIdCount
)

Parameters

hThread  IntPtr
Specifies the thread on which to set the CPU Set assignment.

This handle must have the SetLimitedInformation access right.

The value returned by GetCurrentThread can also be used.

cpuSetIds  UInt32
Specifies the list of CPU Set IDs to set as the thread selected CPU set.

If this parameter is NULL, the function clears out any assignment, reverting to process default assignment if one is set.

cpuSetIdCount  UInt32
Specifies the number of IDs in the list passed in the cpuSetIds argument.

If that value is NULL, this should be 0.

Return Value

Boolean
This function cannot fail when passed valid parameters.

Remarks

See Also