Post by jjoohhnnHow to get the process name by using process id?
By process name, do you mean mean the name of the EXE file used to start
the process? OpenProcess followed by GetModuleFileNameEx.
Alternatively, enumerate all processes with Process32First /
Process32Next. You get PROCESSENTRY32 structure for each process which,
among other things, contains the process ID and the EXE name. Look for
an entry matching your ID.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925