SetProcessAffinityMask function kernel32

int SetProcessAffinityMask(
  1. int hProcess,
  2. int dwProcessAffinityMask
)

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);