How to close windows shell, and then start it again, but without restarting windows ?
Printable View
How to close windows shell, and then start it again, but without restarting windows ?
ending the explorer program (Win9x) / process (WinNT), and starting it again
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?
Use this sample code, and feed it the EWX_LOGOFF constant instead of the EWX_REBOOT constantVB Code:
'In general section Const EWX_LOGOFF = 0 Const EWX_SHUTDOWN = 1 Const EWX_REBOOT = 2 Const EWX_FORCE = 4 Private Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long Private Sub Form_Load() 'KPD-Team 1998 'URL: [url]http://www.allapi.net/[/url] 'E-Mail: [email][email protected][/email] msg = MsgBox("This program is going to reboot your computer. Press OK to continue or Cancel to stop.", vbCritical + vbOKCancel + 256, App.Title) If msg = vbCancel Then End 'reboot the computer ret& = ExitWindowsEx(EWX_FORCE Or EWX_REBOOT, 0) End Sub
How to end explorer.exe ?
What do you mean by "end explorer.exe"?
Shut the machine off?
Warm boot?
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