IShellDispatch4.WindowsSecurity 方法
顯示[Windows 安全性] 對話方塊。
語法
IShellDispatch4.WindowsSecurity()
IShellDispatch4.WindowsSecurity()
參數
這個方法沒有任何參數。
傳回值
JScript
這個方法不會傳回值。
VB
這個方法不會傳回值。
備註
這個方法會顯示在按下 CTRL+ALT+DELETE 或使用 [ 開始 ] 功能表上的安全性選項之後顯示的對話方塊。
注意
只有在終端機會話連線到 Microsoft 終端機伺服器時,才能使用這個方法。
範例
下列範例示範如何使用適用于 JScript、VBScript 和 Visual Basic 的 WindowsSecurity 。
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
規格需求
需求 | 值 |
---|---|
最低支援的用戶端 |
Windows XP [僅限傳統型應用程式] |
最低支援的伺服器 |
Windows Server 2003 [僅限桌面應用程式] |
標頭 |
|
Idl |
|
DLL |
|