Hi, I know how to get the PID of a program that has a window.. I use EnumWindows() , then GetWindowModuleFileName() then GetWindowThreadProcessId() ...
(I learned it here http://cboard.cprogramming.com/showthread.php?t=33237 )
But I cant do it with a program that runs in a dos console right ?
I should create something that returns the PID of a given name.exe program...
Any suggestion ?