Microsoft® Windows® Script Interfaces
IActiveScriptSite
 Language Reference
Previous
Next


The host must create a site for the Windows Script engine by implementing the IActiveScriptSite interface. Usually, this site will be associated with the container of all the objects that are visible to the script (for example, the ActiveX Controls). Typically, this container will correspond to the document or page being viewed. Microsoft Internet Explorer, for example, would create such a container for each HTML page being displayed. Each ActiveX control (or other automation object) on the page, and the scripting engine itself, would be enumerable within this container.

Methods in Vtable Order

Method Description
GetLCID Retrieves the locale identifier that the host uses for displaying user-interface elements.
GetItemInfo Obtains information about an item that was added to an engine through a call to the IActiveScript::AddNamedItem method.
GetDocVersionString Retrieves a host-defined string that uniquely identifies the current document version from the host's point of view.
OnScriptTerminate Called when the script has completed execution.
OnStateChange Informs the host that the scripting engine has changed states.
OnScriptError Informs the host that an execution error occurred while the engine was running the script.
OnEnterScript Informs the host that the scripting engine has begun executing the script code.
OnLeaveScript Informs the host that the scripting engine has returned from executing script code.


整理:iScripts.org