Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Logs an error (an EXCEPINFO structure) in the error log for a named property.
Syntax
HRESULT AddError( LPCOLESTR pszPropName, LPEXCEPINFO pExcepInfo);
Parameters
- 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.
Return Value
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.
Remarks
E_NOTIMPL is not a valid return code because the method is the only one in the entire interface.
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.