CreateErrorInfo function (oleauto.h)
Creates an instance of a generic error object.
Syntax
HRESULT CreateErrorInfo(
[out] ICreateErrorInfo **pperrinfo
);
Parameters
[out] pperrinfo
A system-implemented generic error object.
Return value
This function can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
Could not create the error object. |
Remarks
This function returns a pointer to a generic error object, which you can use with QueryInterface on ICreateErrorInfo to set its contents. You can then pass the resulting object to SetErrorInfo. The generic error object implements both ICreateErrorInfo and IErrorInfo.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | oleauto.h |
Library | OleAut32.lib |
DLL | OleAut32.dll |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for