int = SetThreadAffinityMask(hThread, ThreadAffinityMask )
Sets a processor affinity mask for a specified thread.