Who knows, what will be, if I set SetThreadAffinityMask for example 0x00000002, and program will run onto PC with only one CPU? I didn’t find about that moment on literature.
Who knows, what will be, if I set SetThreadAffinityMask for example 0x00000002, and program
Share
The system ignores any bits that do not correspond to processors. For your example, therefore, you are attempting to set the thread to have affinity with none of the available processors in the process affinity mask and the call to
SetThreadAffinityMaskfails.