Windows Driver Kit: Kernel-Mode Driver Architecture
KeRevertToUserAffinityThreadEx
The KeRevertToUserAffinityThreadEx routine returns the thread to the previous system affinity.
VOID
KeRevertToUserAffinityThreadEx(
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.This value should be obtained from the return value of KeSetSystemAffinityThreadEx
Return Value
None
Comments
KeRevertToUserAffinityThreadEx sets the affinity value of the thread if the Affinity value is nonzero. Otherwise, the original user affinity is restored.
Requirements
Versions: Available on Windows Vista and later versions of the Windows operating system.
IRQL: <=DISPATCH_LEVEL
Headers: Declared in Wdm.h. Include Wdm.h.
See Also
KAFFINITY, KeSetSystemAffinityThreadEx