path: cpulimit_3.2-1/cpulimit.c //look for the target process..or wait for it if (exe != NULL) pid=getpidof(exe); else if (path != NULL) pid=getpidof(path); path: cpulimit_3.2-1/cpulimit.c pid=getpidof(exe); else if (path != NULL) pid=getpidof(path); else waitforpid(pid); path: cpulimit_3.2-1/cpulimit.c // or simply its name //return: pid of the found process int getpidof(const char *process) { //set low priority