Try a different approach.  CPUAffinity doesnt carry a number of threads, that must be retrieved separately based on the thread settings