IShellDispatch.ShutdownWindows method
Displays the Shut Down Windows dialog box. This is the same as clicking the Start menu and selecting Shut Down.
Syntax
IShellDispatch.ShutdownWindows()
IShellDispatch.ShutdownWindows()
Parameters
This method has no parameters.
Return value
JScript
This method does not return a value.
VB
This method does not return a value.
Remarks
This method is implemented and accessed through the Shell.ShutdownWindows method.
Examples
The following example shows the use of ShutdownWindows in JScript, VBScript, and Visual Basic.
JScript:
<script language="JScript">
function fnShellShutdownWindowsJ()
{
var objShell = new ActiveXObject("shell.application");
objshell.ShutdownWindows();
}
</script>
VBScript:
<script language="VBScript">
function fnShellShutdownWindowsVB()
dim objShell
set objShell = CreateObject("shell.application")
objshell.ShutdownWindows
set objShell = nothing
end function
</script>
Visual Basic:
Private Sub fnShellShutdownWindowsVB()
Dim objShell As Shell
Set objShell = New Shell
objshell.ShutdownWindows
Set objShell = Nothing
End Sub
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional, Windows XP [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Header |
|
IDL |
|
DLL |
|