Who knows, what will be, if I set SetThreadAffinityMask for example 0x00000002, and开发者_StackOverflow中文版 program will run onto PC with only one CPU? I didn't find about that moment on literature.
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 SetThreadAffinityMask
fails.
精彩评论