CeSetProcessAffinity don't work

hello,
my question is:

I have a thread, I want that thread run on CORE #2
this is the code i wrote:

DWORD affinity;
CeGetProcessAffinity( thHandle, &affinity );
affinity= 2;
b= CeSetProcessAffinity( thHandle, affinity );
DWORD err= GetLastError();
CeGetProcessAffinity( thHandle, &affinity );

b result FALSE
and err= 6
is it possible to change the affinity in this environment??

thanks
Davide.

Dear @ddr

The most probable reason for the failure is that you built your application using the CE6 SDK (Toradex_CE600).
As CE6 does not support multicore operation, the function call is failing. Anyway, any application built with the CE6 SDK will only use one of the two T20 cores.

To overcome this, simply select the WEC7 SDK and rebuild your application.

If you need to stay with the CE6 SDK, for example to make the application compatible to CE6 and WEC7, there’s an API to activate WEC7 extensions during runtime of the application.

Regards, Andy

thanks Andy,
i made a new WIN32 project and now (don’t know exactly why, I’ll investigate it) but work!
tnks.
Davide.