SetThreadAffinityMask function kernel32
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);