@Kernel32Proxy('SetThreadAffinityMask')
def SetThreadAffinityMask(hThread=None, dwThreadAffinityMask=NeededParameter):
    if hThread is None:
        hThread = GetCurrentThread()
    return SetThreadAffinityMask.ctypes_function(hThread, dwThreadAffinityMask)
If hThread is not given, it will be the current thread
dataset/ETHPy150Open hakril/PythonForWindows/windows/winproxy.py/SetThreadAffinityMask