|
-
Dec 2nd, 2001, 07:54 AM
#1
Thread Starter
New Member
Restarting windows shell
How to close windows shell, and then start it again, but without restarting windows ?
-
Dec 2nd, 2001, 05:03 PM
#2
Lively Member
Explorer.exe
ending the explorer program (Win9x) / process (WinNT), and starting it again
-
Dec 5th, 2001, 06:05 AM
#3
Junior Member
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?
-
Dec 5th, 2001, 07:04 AM
#4
Use this sample code, and feed it the EWX_LOGOFF constant instead of the EWX_REBOOT constant
VB 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]
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
-
Dec 6th, 2001, 11:47 AM
#5
Thread Starter
New Member
How to end explorer.exe ?
-
Dec 7th, 2001, 09:29 AM
#6
What do you mean by "end explorer.exe"?
Shut the machine off?
Warm boot?
-
Dec 7th, 2001, 11:24 AM
#7
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|