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

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -