Windows Driver Kit: Kernel-Mode Driver Architecture
KeSetSystemAffinityThread
The KeSetSystemAffinityThread routine sets the system affinity for the current thread.
VOID
KeSetSystemAffinityThread(
IN KAFFINITY Affinity
);
Parameters
- Affinity
- A KAFFINITY-typed variable that receives a bitmap that represents the set of currently active processors. Note that in a hot-add environment, the set of active processors might change during run time.
Return Value
None
Requirements
Versions: Available on Microsoft Windows 2000 and later versions of the Windows operating system. Use KeSetSystemAffinityThread only on systems before Windows Vista. On Windows Vista and later versions of the Windows operating system, use KeSetSystemAffinityThreadEx instead.
IRQL: <=DISPATCH_LEVEL
Headers: Declared in Wdm.h. Include Wdm.h.
See Also
KAFFINITY, KeSetSystemAffinityThreadEx