Is Visual C++ running?
-
Any guidance on how to tell programatically whether Visual C++ is running? The simplest solution would appear to be if there is a known mutex that I could refer to, but I have had no luck finding any such information in MSDN or on the web. Failing that, other suggestions also welcome. It's with a view to writing installer(s) using Martijn Laan's "My Inno Setup Extensions", so I can write an extension DLL in C++ if necessary. Cheers, Gavin Greig
-
Any guidance on how to tell programatically whether Visual C++ is running? The simplest solution would appear to be if there is a known mutex that I could refer to, but I have had no luck finding any such information in MSDN or on the web. Failing that, other suggestions also welcome. It's with a view to writing installer(s) using Martijn Laan's "My Inno Setup Extensions", so I can write an extension DLL in C++ if necessary. Cheers, Gavin Greig
You need to Use PSAPI Functions. Start with ProcessEnum Function... I wrote a class that Do that you need... If you want for a :beer: I can share the class with you.... :-D Best Regards Carlos Antollini. Sonork ID 100.10529 cantollini
-
Any guidance on how to tell programatically whether Visual C++ is running? The simplest solution would appear to be if there is a known mutex that I could refer to, but I have had no luck finding any such information in MSDN or on the web. Failing that, other suggestions also welcome. It's with a view to writing installer(s) using Martijn Laan's "My Inno Setup Extensions", so I can write an extension DLL in C++ if necessary. Cheers, Gavin Greig
Also you can See what Applications Are running enumming the HWND... Also I Wrote a Class that Do that.... The Principal difference is that for PSAPI functions you need the psapi.dll that is only in NT and W2K, Don't work under win 95/98. I don't Know what happens with XP..:-O Carlos Antollini. Sonork ID 100.10529 cantollini
-
Any guidance on how to tell programatically whether Visual C++ is running? The simplest solution would appear to be if there is a known mutex that I could refer to, but I have had no luck finding any such information in MSDN or on the web. Failing that, other suggestions also welcome. It's with a view to writing installer(s) using Martijn Laan's "My Inno Setup Extensions", so I can write an extension DLL in C++ if necessary. Cheers, Gavin Greig
There are two simple ways: 1. Enumerating processes. You can use the following classes to enumarate processes on both NT/2000 and Win9x. http://www.codeproject.com/threads/enumprocess.asp 2. You can use FindWindow API to find Visual C++ window. You can also give the class name as a parameter to be sure that the window found is Visual C++ Window. Hope this helps. Kind regards Mustafa Demirhan http://www.macroangel.com Sonork ID 100.9935:zoltrix
-
Any guidance on how to tell programatically whether Visual C++ is running? The simplest solution would appear to be if there is a known mutex that I could refer to, but I have had no luck finding any such information in MSDN or on the web. Failing that, other suggestions also welcome. It's with a view to writing installer(s) using Martijn Laan's "My Inno Setup Extensions", so I can write an extension DLL in C++ if necessary. Cheers, Gavin Greig
Thanks guys, I'll look into these. Cheers, Gavin Greig