| Microsoft® Windows® Script Interfaces IActiveScript::SetScriptSite  | 
     Language Reference Previous Next  | 
  
HRESULT SetScriptSite( IActiveScriptSite *pScriptSite // address of host script site );
Informs the scripting engine of the IActiveScriptSite interface site provided by the host. This method must be called before any other IActiveScript interface methods can be used.
| Return Value | Meaning | 
| S_OK | Success. | 
| E_FAIL | An unspecified error occurred; the scripting engine was unable to finish initializing the site. | 
| E_INVALIDARG | An argument was invalid. | 
| E_POINTER | An invalid pointer was specified. | 
| E_UNEXPECTED | The call was not expected (for example, a site was already set). |