PsSetSystemMultipleGroupAffinityThread - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdm.h

NTSTATUS PsSetSystemMultipleGroupAffinityThread(
  [in]      PGROUP_AFFINITY GroupAffinities,
  [in]      USHORT          GroupCount,
  [in, out] PAFFINITY_TOKEN AffinityToken
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-pssetsystemmultiplegroupaffinitythread)

Description

The PsSetSystemMultipleGroupAffinityThread function sets the multi-group system affinity of the current thread.

Parameters

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.

Return value

Returns an NTSTATUS code.

Remarks

See also

PsAllocateAffinityToken

PsRevertToUserMultipleGroupAffinity