
Display the “Shut down Windows” dialog
To programmatically display the “Shut down Windows” standard dialog box you can use the SHShutDownDialog undocumented API function, whose declaration is: Declare Function SHShutDownDialog Lib “shell32” Alias “#60” (ByVal lType As _ Long) As Long Its only argument can be one of these constants: Public Const EWX_LOGOFF = 0Public Const