|
Answer» Is there a WAY (using a batch file or by command line) to display the Windows 98 shutdown dialog box? How do you use rundll.exe to display it? I think the shutdown dialog is located somewhere inside the shell32.dll. :-?Check out this page.... http://www.robvanderwoude.com/index.html
Use batch command START to execute windows applications
GrahamI looked at the site. It showed how to shutdown the computer (RUNDLL SHELL32.DLL,SHExitWindowsEx 1), reboot (RUNDLL SHELL32.DLL,SHExitWindowsEx 2), and logoff (RUNDLL SHELL32.DLL,SHExitWindowsEx). It explained how to do all of the CHOICES on the shutdown dialog, but didn't show how to display the actual dialog box.hmmm I have trawled through many pages, all regurgitating the same LIST of command lines.
I WOULD have thought it was possible to show the dialog, apparently not.
Why do you want this ? could you perhaps create a dos type menu to offer these options ? GrahamI am creating a replacement program (GUI Shell) for the Windows 98 explorer.exe and I need a way to shutdown the computer from my own GUI Shell. I thought it would be easier to use the shutdown dialog that explorer uses by using rundll.exe to call the dialog box out of shell32.dll. I am using VB and I could make my own shutdown dialog, but if I could use the one that explorer uses I wouldn't have to code my own in VB.
Because I am using VB I wouldn't want to create a DOS type menu. I would create my own dialog with the choices on it. Then for each choice I would use the VB "Shell" command to shutdown, reboot, or logoff the computer.
I do know how to create my own dialog but I thought it would be FASTER to use the one located in shell32.dll.
Linux711
|