Export (0) Print
Expand All

CreateErrorInfo function

Creates an instance of a generic error object.

Syntax


HRESULT CreateErrorInfo(
  _Out_  ICreateErrorInfo **pperrinfo
);

Parameters

pperrinfo [out]

A system-implemented generic error object.

Return value

This function can return one of these values.

Return codeDescription
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.

Requirements

Header

OleAuto.h

Library

OleAut32.lib

DLL

OleAut32.dll

See also

Error-Handling API Functions

 

 

Community Additions

ADD
Show:
© 2015 Microsoft