// wdm.h
NTSTATUS PsAllocateAffinityToken(
[out] PAFFINITY_TOKEN *AffinityToken
);
View the official Windows Driver Kit DDI reference
No description available.
The PsAllocateAffinityToken function allocates a thread affinity token. After use, the token must be freed by calling PsFreeAffinityToken.
AffinityToken
[out]Supplies a pointer to a buffer which, on success, receives a pointer to the newly allocated affinity token.
Returns an NTSTATUS code.