Contents Index Topic Contents | ||
Previous Topic: The IErrorLog Interface Next Topic: The IPersistHistory Interface |
IErrorLog::AddError
HRESULT AddError( [in] LPCOLESTR pszPropName, [in] LPEXCEPINFO pExcepInfo);Logs an error (an EXCEPINFO structure) in the error log for a named property.
- Returns one of the following values:
S_OK The error was logged successfully. E_FAIL There was a problem logging the error. E_OUTOFMEMORY There was not enough memory to log the error. E_POINTER The address in pszPropName or pExcepInfo is not valid (such as NULL). The caller must supply both.
- pszPropName
- [in] Name of the property involved with the error. Cannot be NULL.
- pExcepInfo
- [in] Address of the caller-initialized EXCEPINFO structure that describes the error to log. Cannot be NULL.
E_NOTIMPL is not a valid return code because the member function is the only one in the entire interface.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.