IControlErrorInfo

提供函式,以取得控制管理員執行作業時所發生之錯誤的相關資訊。 此錯誤指出發生錯誤的物件類型:設定檔、收集器或提供者。 這個介面可以是巢狀結構,以提供錯誤資訊的階層。 介面衍生自 COM IErrorInfo 介面,其提供存取詳細內容錯誤資訊的函式。

Syntax

{
  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);
};

函式

下表描述此介面的函式。

函式 描述

GetObjectType

傳回產生錯誤的型別。

GetHResult

傳回 HRESULT 值,指出錯誤碼。

GetInnerErrorInfo

傳回錯誤的其他資訊。

介面