Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Is Visual C++ running?

Is Visual C++ running?

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestionworkspace
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gavin Greig
    wrote on last edited by
    #1

    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

    C M G 4 Replies Last reply
    0
    • G 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

      C Offline
      C Offline
      Carlos Antollini
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • G 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

        C Offline
        C Offline
        Carlos Antollini
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • G 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

          M Offline
          M Offline
          Mustafa Demirhan
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • G 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

            G Offline
            G Offline
            Gavin Greig
            wrote on last edited by
            #5

            Thanks guys, I'll look into these. Cheers, Gavin Greig

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups