SetProcessAffinityMask function kernel32
Sets a processor affinity mask for the threads of the specified process.
BOOL SetProcessAffinityMask(
HANDLE hProcess,
DWORD_PTR dwProcessAffinityMask
);
Implementation
int SetProcessAffinityMask(int hProcess, int dwProcessAffinityMask) =>
_SetProcessAffinityMask(hProcess, dwProcessAffinityMask);