#include <windows.h> #include <processthreadsapi.h> SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST);