三句代码调整进程优先级
// 调整本进程优先级,有以下三句就够了
HANDLE hPS = OpenProcess(PROCESS_ALL_ACCESS, false, GetCurrentProcessId());
SetPriorityClass(hPS, HIGH_PRIORITY_CLASS);
CloseHandle(hPS);
//define
#define NORMAL_PRIORITY_CLASS 0x00000020
#define IDLE_PRIORITY_CLASS 0x00000040
#define HIGH_PRIORITY_CLASS 0x00000080
#define REALTIME_PRIORITY_CLASS 0x00000100