Results 1 to 7 of 7

Thread: Restarting windows shell

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Posts
    5

    Restarting windows shell

    How to close windows shell, and then start it again, but without restarting windows ?

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Location
    Højslev, None, Denmark
    Posts
    75

    Lightbulb Explorer.exe

    ending the explorer program (Win9x) / process (WinNT), and starting it again
    Queen ROCKS!!!!!

  3. #3
    Junior Member
    Join Date
    Nov 2001
    Location
    Netherlands
    Posts
    22

    whoa.

    I have seen a sample where explorer.exe was replaced by an other program (written in vb). That's done by hacking in system.ini. That shell was pretty cool.

    However, when VB ended the program with a runtime error, the shell disappeared, and never showed up again. Otherwise, I would already use that program instead of the explorer.exe shell

    How would you solve that?
    Yet Another Perl Programmer



    Working with the Windows 32 API
    Test my carrier game
    X-Programming Forums (members and testers wanted!)

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Use this sample code, and feed it the EWX_LOGOFF constant instead of the EWX_REBOOT constant
    VB Code:
    1. 'In general section
    2. Const EWX_LOGOFF = 0
    3. Const EWX_SHUTDOWN = 1
    4. Const EWX_REBOOT = 2
    5. Const EWX_FORCE = 4
    6. Private Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
    7. Private Sub Form_Load()
    8.     'KPD-Team 1998
    9.     'URL: [url]http://www.allapi.net/[/url]
    10.     'E-Mail: [email][email protected][/email]
    11.     msg = MsgBox("This program is going to reboot your computer. Press OK to continue or Cancel to stop.", vbCritical + vbOKCancel + 256, App.Title)
    12.     If msg = vbCancel Then End
    13.     'reboot the computer
    14.     ret& = ExitWindowsEx(EWX_FORCE Or EWX_REBOOT, 0)
    15. End Sub

  5. #5

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Posts
    5
    How to end explorer.exe ?

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    What do you mean by "end explorer.exe"?

    Shut the machine off?
    Warm boot?

  7. #7

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Posts
    5
    end windows shell. I placed my own shell which calls explorer.exe, then my app minimizes to tray. I want to add log off action to my shell, which closes all programs, including explorer.exe. Thats all

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width