// wdm.h
NTSTATUS PsSetSystemMultipleGroupAffinityThread(
[in] PGROUP_AFFINITY GroupAffinities,
[in] USHORT GroupCount,
[in, out] PAFFINITY_TOKEN AffinityToken
);
View the official Windows Driver Kit DDI reference
No description available.
The PsSetSystemMultipleGroupAffinityThread function sets the multi-group system affinity of the current thread.
GroupAffinities
[in]Supplies a pointer to an array of group affinity structures, which describe the new system affinity of the current thread.
GroupCount
[in]Supplies the number of elements in the group affinity array.
AffinityToken
[in, out]Supplies a pointer to an affinity token structure which must be returned by PsAllocateAffinityToken. On output it receives an opaque affinity token that must be passed to PsRevertToUserMultipleGroupAffinity to revert the thread to its previous affinity.
Returns an NTSTATUS code.
PsRevertToUserMultipleGroupAffinity