PsAllocateAffinityToken - NtDoc

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

NTSTATUS PsAllocateAffinityToken(
  [out] PAFFINITY_TOKEN *AffinityToken
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

Description

The PsAllocateAffinityToken function allocates a thread affinity token. After use, the token must be freed by calling PsFreeAffinityToken.

Parameters

AffinityToken [out]

Supplies a pointer to a buffer which, on success, receives a pointer to the newly allocated affinity token.

Return value

Returns an NTSTATUS code.

Remarks

See also

PsFreeAffinityToken