#include <acknex.h>
#define REALTIME_PRIORITY_CLASS 0x100
#define HIGH_PRIORITY_CLASS 0x80
#define ABOVE_NORMAL_PRIORITY_CLASS 0x8000
#define NORMAL_PRIORITY_CLASS 0x20
#define BELOW_NORMAL_PRIORITY_CLASS 0x4000
#define IDLE_PRIORITY_CLASS 0x40
long __stdcall SetPriorityClass(long hProcess,long dwPriorityClass);
long __stdcall GetCurrentProcess(void); // Bug! windows.h has wrong syntax GetCurrentProcess(long);
API(SetPriorityClass,kernel32)
API(GetCurrentProcess,kernel32)
void Set_Priority_Class_startup()
{
SetPriorityClass(GetCurrentProcess(), REALTIME_PRIORITY_CLASS);
}