winapi - How do I find out if a .exe is running in c++? -


How do you know that the process name is running an executable on a given Windows, e.g. Program.exe?

There is no support of the C ++ standard library To do this, you need the operating system API If it is Windows then you use CreateToolhelp32 snapshot (), after Process32First and Process32Next to iterate the process processes. Beware of the conditions of inevitable race, the process could have come out of the time when you used to get it.


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -