PsSetSystemMultipleGroupAffinityThread function (wdm.h)
The PsSetSystemMultipleGroupAffinityThread function sets the multi-group system affinity of the current thread.
Syntax
NTSTATUS PsSetSystemMultipleGroupAffinityThread(
[in] PGROUP_AFFINITY GroupAffinities,
[in] USHORT GroupCount,
[in, out] PAFFINITY_TOKEN AffinityToken
);
Parameters
[in] GroupAffinities
Supplies a pointer to an array of group affinity structures, which describe the new system affinity of the current thread.
[in] GroupCount
Supplies the number of elements in the group affinity array.
[in, out] AffinityToken
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.
Return value
Returns an NTSTATUS code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 11 |
Minimum supported server | Windows Server 2022 |
Header | wdm.h |