Get current PID and set process priority.

Get current PID and set process priority.

GetCurrentProcess,GetCurrentProcessId,SetPriorityClass

See version :

Pas de dépendances

Download :

#include <windows.h>
#include <stdio.h>

int main()
{
    HANDLE h = GetCurrentProcess();
    DWORD pid = GetCurrentProcessId();
    printf ("PID = %d\n",pid );
    SetPriorityClass(h,HIGH_PRIORITY_CLASS);
    return 0;
}




Explanations

	No explanations yet.