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. I shut down explorer.exe but it restarts itself...

I shut down explorer.exe but it restarts itself...

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
6 Posts 4 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.
  • I Offline
    I Offline
    Ian Bowler
    wrote on last edited by
    #1

    I'm using TerminateProcess to shut down explorer.exe (not iexplore.exe). This works, but a few seconds after explorer.exe is terminated, it starts back up. When I terminate explorer though the Windows Task Manager it doesn't restart itself. I want to control when exporer.exe starts back up. How do I keep it from restarting itself? (I can post my code if anyone thinks it's necessary.) Thanks for the help! Ian

    T J D 3 Replies Last reply
    0
    • I Ian Bowler

      I'm using TerminateProcess to shut down explorer.exe (not iexplore.exe). This works, but a few seconds after explorer.exe is terminated, it starts back up. When I terminate explorer though the Windows Task Manager it doesn't restart itself. I want to control when exporer.exe starts back up. How do I keep it from restarting itself? (I can post my code if anyone thinks it's necessary.) Thanks for the help! Ian

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      haven't you ever noticed that when windows freezes and you have no desktop and no taskbar anymore, you can do "New task" (with Crtl+Alt+Del or Ctrl+Shift+Esc for example) and type in the field explorer... i don't think the way you think is able to controle what you want.


      TOXCCT >>> GEII power

      I 1 Reply Last reply
      0
      • T toxcct

        haven't you ever noticed that when windows freezes and you have no desktop and no taskbar anymore, you can do "New task" (with Crtl+Alt+Del or Ctrl+Shift+Esc for example) and type in the field explorer... i don't think the way you think is able to controle what you want.


        TOXCCT >>> GEII power

        I Offline
        I Offline
        Ian Bowler
        wrote on last edited by
        #3

        I'm not sure I follow you. I want to shut down explorer.exe. This I have done (I can see it dissapear from the process list in Windows Task Manager). Now I need to figure out how to keep it from starting itself back up. I know this is possible because I have seen other applications that shut it down and keep it down. I don't suppose they continually shut it down in a separate thread?

        1 Reply Last reply
        0
        • I Ian Bowler

          I'm using TerminateProcess to shut down explorer.exe (not iexplore.exe). This works, but a few seconds after explorer.exe is terminated, it starts back up. When I terminate explorer though the Windows Task Manager it doesn't restart itself. I want to control when exporer.exe starts back up. How do I keep it from restarting itself? (I can post my code if anyone thinks it's necessary.) Thanks for the help! Ian

          J Offline
          J Offline
          jmkhael
          wrote on last edited by
          #4

          HWND hwndShell = FindWindow("Progman", NULL); PostMessage(hwndShell, WM_QUIT, 0, 0L); http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q137/5/72.ASP&NoWebContent=1[^] Papa while (TRUE) Papa.WillLove ( Bebe ) ;

          I 1 Reply Last reply
          0
          • J jmkhael

            HWND hwndShell = FindWindow("Progman", NULL); PostMessage(hwndShell, WM_QUIT, 0, 0L); http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q137/5/72.ASP&NoWebContent=1[^] Papa while (TRUE) Papa.WillLove ( Bebe ) ;

            I Offline
            I Offline
            Ian Bowler
            wrote on last edited by
            #5

            Thank you so much!

            1 Reply Last reply
            0
            • I Ian Bowler

              I'm using TerminateProcess to shut down explorer.exe (not iexplore.exe). This works, but a few seconds after explorer.exe is terminated, it starts back up. When I terminate explorer though the Windows Task Manager it doesn't restart itself. I want to control when exporer.exe starts back up. How do I keep it from restarting itself? (I can post my code if anyone thinks it's necessary.) Thanks for the help! Ian

              D Offline
              D Offline
              Dan Madden
              wrote on last edited by
              #6

              oooppss, didn't see that you had the answer :-(

              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