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 库。For additional information about EXCEPINFO, see the MSDN Library.

在本机代码中的 COM 方法将返回的 HRESULT 时,公共语言运行时将引发异常。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

指示该主题在帮助文件中的帮助上下文 ID。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.

适用于