I am writing a program on Windows XP, trying to get the proccess handle of calc.exe. I can assume that the user indeed ran calc.exe, but he might have changed the file name.
Is there a name to get the calc.exe process's handle even though is name had been changed?
I have found this answer but it doesn't deal with the case when the naughty user changes the name (for example to calc_new.exe):
How can I get a process handle by its name in C++?
Is there some other property of a Win32 process I can use to find the handle?