Windows Driver Kit: Kernel-Mode Driver Architecture
KeSetSystemAffinityThreadEx
The KeSetSystemAffinityThreadEx routine sets the system affinity for the current thread.
KAFFINITY
KeSetSystemAffinityThreadEx(
IN KAFFINITY Affinity
);
Parameters
- Affinity
- A KAFFINITY-typed variable that received 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 runtime.
Return Value
KeSetSystemAffinityThreadEx returns either the previous system affinity or zero to indicate that there was no previous system affinity.
Comments
Use KeSetSystemAffinityThreadEx instead of the KeSetSystemAffinityThread routine whenever possible.
Callers of should pass the return value to the
KeRevertToUserAffinityThreadEx routine when appropriate.
Requirements
Versions: Available on Windows Vista and later versions of the Windows operating system.
Headers: Declared in Wdm.h. Include Wdm.h.
See Also
KAFFINITY, KeRevertToUserAffinityThreadEx, KeSetSystemAffinityThread