EXCEPINFO EXCEPINFO EXCEPINFO EXCEPINFO Struct

定義

描述在 IDispatch::Invoke 期間發生的例外狀況。Describes the exceptions that occur during IDispatch::Invoke.

public value class EXCEPINFO
public struct EXCEPINFO
type EXCEPINFO = struct
Public Structure EXCEPINFO
繼承

備註

如需有關EXCEPINFO的詳細資訊, 請參閱 MSDN Library。For additional information about EXCEPINFO, see the MSDN Library.

當原生程式碼中的 COM 方法傳回 HRESULT 時, common language runtime 會擲回例外狀況。The common language runtime throws an exception when a COM method in native code returns an HRESULT. 如需詳細資訊,請參閱 How to: Map HRESULTs and ExceptionsFor more information, see How to: Map HRESULTs and Exceptions.

欄位

bstrDescription bstrDescription bstrDescription bstrDescription

描述預定給客戶的錯誤。Describes the error intended for the customer.

bstrHelpFile bstrHelpFile bstrHelpFile bstrHelpFile

包含說明檔 (含有關於錯誤的詳細資訊) 的完整磁碟機、路徑和檔案名稱。Contains the fully-qualified drive, path, and file name of a Help file that contains more information about the error.

bstrSource bstrSource bstrSource bstrSource

指示例外狀況來源的名稱。Indicates the name of the source of the exception. 通常,這是應用程式名稱。Typically, this is an application name.

dwHelpContext dwHelpContext dwHelpContext dwHelpContext

指示說明檔內的說明主題代碼。Indicates the Help context ID of the topic within the Help file.

pfnDeferredFillIn pfnDeferredFillIn pfnDeferredFillIn pfnDeferredFillIn

表示函式的指標,這函式接受 EXCEPINFO 結構做為引數,並且傳回 HRESULT 值。Represents a pointer to a function that takes an EXCEPINFO structure as an argument and returns an HRESULT value. 如果不希望將填入擱置,這個欄位要設定為 nullIf deferred fill-in is not desired, this field is set to null.

pvReserved pvReserved pvReserved pvReserved

這個欄位已保留;必須設定為 nullThis field is reserved; it must be set to null.

scode scode scode scode

描述錯誤的傳回值。A return value describing the error.

wCode wCode wCode wCode

表示識別錯誤的錯誤碼。Represents an error code identifying the error.

wReserved wReserved wReserved wReserved

這個欄位已保留;必須設定為 0。This field is reserved; it must be set to 0.

適用於