IControlErrorInfo
Provides functions that obtain information about errors that occur when the control manager performs an operation. The error indicates the type of object on which the error occurred: profile, collector, or provider. This interface can be nested to provide a hierarchy of error information. The interface derives from the COM IErrorInfo interface, which provides functions that access detailed contextual error information.
{
typedef enum
{
ObjectType_Unknown,
ObjectType_Profile,
ObjectType_Collector,
ObjectType_Provider
} CObjectType;
[id(1), helpstring("GetObjectType")] HRESULT GetObjectType
([out, retval] CObjectType* pObjectType);
[id(2), helpstring("GetHResult")] HRESULT GetHResult
([out, retval] HRESULT* pHResult);
[id(3), helpstring("GetInnerErrorInfo")] HRESULT GetInnerErrorInfo
([out, retval] IUnknown** ppVal);
};
The following table describes the functions of this interface.
Function | Description |
---|---|
Returns the type that produced the error. |
|
Returns an HRESULT value that indicates the error code. |
|
Returns additional information about the error. |