Hi,
In Task Manage (process tab), I can see a program (ie abc.exe) is running.
I wish to find out using win API calls to see if abc.exe is running.
I would be greatfull if someone can help me.
Thanks
This is a discussion on How to find out if a process is running (by name) within the Windows Programming forums, part of the Platform Specific Boards category; Hi, In Task Manage (process tab), I can see a program (ie abc.exe) is running. I wish to find out ...
Hi,
In Task Manage (process tab), I can see a program (ie abc.exe) is running.
I wish to find out using win API calls to see if abc.exe is running.
I would be greatfull if someone can help me.
Thanks
This isn't as easy as it should be... About the only way is to enumerate the top level windows on your desktop and find it's window title...
EnumWindows()
As far as a know there is no way to directly ask "Is myprog.exe running".
It's easier to use CreateToolhelp32Snapshot and Process32First/Next to enum the processes while examining ProcessEntry32::szExeFile as you go.
Hi CommonTater and adeybue,
Thanks you both for your valued comments. It worked fine using CreateToolhelp32Snapshot method.