IShellDispatch4.WindowsSecurity method

Displays the Windows Security dialog box.

Syntax

IShellDispatch4.WindowsSecurity()

IShellDispatch4.WindowsSecurity()

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 displays the dialog box shown after pressing CTRL+ALT+DELETE or using the security option on the Start menu.

Note

This method can be used only when connected by a terminal session to Microsoft Terminal Server.

 

Examples

The following examples show the use of WindowsSecurity for JScript, VBScript, and Visual Basic.

JScript:

<script language="JScript">
     function fnIShellDispatch4WindowsSecurityJ()
    {
        var objShell = new ActiveXObject("shell.application");
        
        objshell.WindowsSecurity();
    }
</script>

VBScript:

<script language="VBScript">
     function fnIShellDispatch4WindowsSecurityVB()
        dim objShell
        
        set objShell = CreateObject("shell.application")
            objshell.WindowsSecurity
        set objShell = nothing
    end function
 </script>

Visual Basic:

Private Sub fnIShellDispatch4WindowsSecurityVB()
    Dim objShell As Shell
    
    Set objShell = New Shell
        objshell.WindowsSecurity
    Set objShell = Nothing
End Sub

Requirements

Requirement Value
Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Shldisp.h
IDL
Shldisp.idl
DLL
Shell32.dll (version 6.0 or later)