method SetThreadCPUCoreAffinity.
Allows an app or a script to set the current thread
affinity with CPU Cores and/or to set a thread priority into a
process.
| 
 
 | 
CoreAffinity
[in] .   When
used to set affinity, the string format is for example  “0,4” for Core1 and
Core3 of a CPU
         When used to set priority,
the string format is as following:
    "PRIORITY_HIGH:0
or <ThreadID>"    (High) - 0
for current thread or ThreadID for another thread
    "PRIORITY_ABOVE_NORMAL:0
or <ThreadID>" (Above normal)
    "PRIORITY_NORMAL:0
or <ThreadID>"            
(Normal)
    "PRIORITY_BELOW_NORMAL:0
or <ThreadID>" (Below normal)
    "PRIORITY_LOW:0 or
<ThreadID>"                   (Low)
S_OK
The operation was successfull.
E_UNEXPECTED
An unexpected error occoured.
E_FAIL
A general error occoured.