Skip to content

Latest commit

 

History

History
103 lines (87 loc) · 2.37 KB

nf-oleauto-createerrorinfo.md

File metadata and controls

103 lines (87 loc) · 2.37 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:oleauto.CreateErrorInfo
CreateErrorInfo function (oleauto.h)
Creates an instance of a generic error object.
CreateErrorInfo
CreateErrorInfo function [Automation]
_oa96_CreateErrorInfo
automat.createerrorinfo
oleauto/CreateErrorInfo
automat\createerrorinfo.htm
automat
6a9dd862-754a-48e3-8be5-d1fbd1d38f2b
12/05/2018
CreateErrorInfo, CreateErrorInfo function [Automation], _oa96_CreateErrorInfo, automat.createerrorinfo, oleauto/CreateErrorInfo
oleauto.h
Windows
OleAut32.lib
OleAut32.dll
Windows
19H1
CreateErrorInfo
oleauto/CreateErrorInfo
c++
APIRef
kbSyntax
DllExport
OleAut32.dll
API-MS-Win-Downlevel-OLE32-l1-1-1.dll
ComBase.dll
CreateErrorInfo

CreateErrorInfo function

-description

Creates an instance of a generic error object.

-parameters

-param pperrinfo [out]

A system-implemented generic error object.

-returns

This function can return one of these values.

Return code Description
S_OK
Success.
E_OUTOFMEMORY
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.

-see-also

Error-Handling API Functions