SetThreadAffinityMask function kernel32

int SetThreadAffinityMask(
  1. int hThread,
  2. int dwThreadAffinityMask
)

Sets a processor affinity mask for the specified thread.

DWORD_PTR SetThreadAffinityMask(
  HANDLE    hThread,
  DWORD_PTR dwThreadAffinityMask
);

Implementation

int SetThreadAffinityMask(int hThread, int dwThreadAffinityMask) =>
    _SetThreadAffinityMask(hThread, dwThreadAffinityMask);