win32process.GetProcessAffinityMask

int, int = GetProcessAffinityMask(hProcess)

Gets a processor affinity mask for a specified process

Parameters

hProcess : PyHANDLE

handle to the process of interest

Return Value

The result is a tuple of (process affinity mask, system affinity mask)