Jump to content

ShutdownDialog - Invoke standard Shutdown dialog box


Recommended Posts

_ShutDownDialog()

Func _ShutDownDialog()
; Rajesh V R 
; An Undocumented dll function, thanks to nirsoft for revealing it... (and all those who posted it on google!)

       ShellExecute("rundll32.exe","shell32.dll,#60")
EndFunc

this opens a standard shutdown dialog box for windows

Posted Image

Edited by rajeshontheweb
Link to comment
Share on other sites

yeah i did search for it in the forums, thought it might have been posted as a dllcall or something, but this wasnt found. so posting it here for anyone who would like it. because, personally i have searched for this functionality earlier.

and rather than closing progman, or shell object, this would be preferrable ?

Edited by rajeshontheweb
Link to comment
Share on other sites

  • 6 months later...

guys, just found another way of triggering shutdown dialog

this uses the Shell.application (thought it might be useful for cases where u are dealing with shell application object already and may not need to use shellexecute call seperately..

Dim $ObjShell
$ObjShell = ObjCreate("Shell.Application")
$ObjShell.ShutdownWindows()
$ObjShell = ""
Edited by rajeshontheweb
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...