Because this should be a contribution and i found in windows.h small bug, here is the working code:

Code:
#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);
}



Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P