I have spent a few days on this already...
I am using _beginthread and _endthread, but I cannot correctly set the priority.
!!!Does someone have a simple example of how to use SetThreadPriority???
Currently I am trying to check if the function fails and it always does so I get extended error information, by calling GetLastError.
The hard part is an arg needs to be handle to the thread. But the thread I run are of type void __cdecl. Even after recasting it the SetThreadPriority fails with GetLastError returning "inappropriate handle".
Thank you!