以下の例は、接続ハンドルにより識別されるエミュレーター・ウィンドウを 停止する方法を示します。

Dim Mgr as Object
Dim Hand as Long
 
Set Mgr = CreateObject("ZIEWin.autECLConnMgr ")
 
' Assume we've got connections open and the Hand parm was obtained earlier
Mgr.StopConnection Hand, "saveprofile=no"
'or
Mgr.StopConnection "B", "saveprofile=no"