Error-Handling API Functions [Automation]

The error handling functions are used to create, set and retrieve error objects.

Funtions

Description

CreateErrorInfo

Creates a generic error object.

GetErrorInfo

Retrieves and clears the current error object.

SetErrorInfo

Sets the current error object.

For 32-bit systems, the error handling functions are provided in Oleaut32.dll, the header file is Oleauto.h, and the import library is Oleaut32.lib. For 16-bit systems, the error handling functions are provided in Ole2disp.dll, the header file is Dispatch.h, and the import library is Ole2disp.lib.

Show: