ConnectObject

Method of IWScript

Connects the object's event sources to functions with a given prefix

JavaScript

WScript.ConnectObject(pobjEventSource, strPrefix);

Visual Basic Script

WScript.ConnectObject pobjEventSource, strPrefix

C++

HRESULT hr = WScript.ConnectObject(pobjEventSource, strPrefix);