ILogScripting::GetSiteName

This method provides the service name and server instance for the operation referred to by the current log record.

virtual HRESULT STDMETHODCALLTYPE GetSiteName(

  VARIANT * pSiteName    

);

 

Parameters
pSiteName
[out, retval] Points to a VARIANT that should be populated with the service name and server instance (such as "W3SVC1000" or "MSFTPSVC1").
Remarks

In order to obtain a meaningful result from this method, the caller must have first used either the ILogScripting::SetInputLogFile or ILogScripting::SetInputServerInstance methods to initialize the log access, and then opened a specific log record with the ILogScripting::ReadLogRecord method.

See Also

ILogScripting Interface