The IInetLogInformation::GetTarget method obtains the target for the current operation.
virtual LPSTR STDMETHODCALLTYPE GetTarget( IN PCHAR pszTarget, IN PDWORD pcbSize );