次の方法で共有


Retrieves the site object associated with the Windows Script engine.

Microsoft® Windows® Script Interfaces
IActiveScript::GetScriptSite
 Language Reference
Previous
Next

  HRESULT GetScriptSite(
    REFIID iid,           // interface identifier
    void **ppvSiteObject  // address of host site interface
);

  • Returns one of the following values:

    Return Value Meaning S_OK Success. E_INVALIDARG An argument was invalid. E_NOINTERFACE The specified interface is not supported. E_POINTER An invalid pointer was specified. S_FALSE No site has been set; the ppvSiteObject parameter is set to NULL.
  • iid
    [in] Identifier of the requested interface.
  • ppvSiteObject
    [out] Address of the location that receives the interface pointer to the host's site object.