DkmWin32ExceptionInformation.Create 方法

定义

创建新的 DkmWin32ExceptionInformation 对象实例。

public:
 static Microsoft::VisualStudio::Debugger::Native::DkmWin32ExceptionInformation ^ Create(Microsoft::VisualStudio::Debugger::DkmRuntimeInstance ^ RuntimeInstance, Microsoft::VisualStudio::Debugger::DkmThread ^ Thread, Microsoft::VisualStudio::Debugger::DkmInstructionAddress ^ InstructionAddress, System::UInt32 Code, Microsoft::VisualStudio::Debugger::Exceptions::DkmExceptionProcessingStage ProcessingStage, System::UInt32 ExceptionFlags, System::UInt64 ParentExceptionRecordAddress, System::UInt64 Address, System::Collections::ObjectModel::ReadOnlyCollection<System::UInt64> ^ ExceptionParameters);
public static Microsoft.VisualStudio.Debugger.Native.DkmWin32ExceptionInformation Create (Microsoft.VisualStudio.Debugger.DkmRuntimeInstance RuntimeInstance, Microsoft.VisualStudio.Debugger.DkmThread Thread, Microsoft.VisualStudio.Debugger.DkmInstructionAddress InstructionAddress, uint Code, Microsoft.VisualStudio.Debugger.Exceptions.DkmExceptionProcessingStage ProcessingStage, uint ExceptionFlags, ulong ParentExceptionRecordAddress, ulong Address, System.Collections.ObjectModel.ReadOnlyCollection<ulong> ExceptionParameters);
static member Create : Microsoft.VisualStudio.Debugger.DkmRuntimeInstance * Microsoft.VisualStudio.Debugger.DkmThread * Microsoft.VisualStudio.Debugger.DkmInstructionAddress * uint32 * Microsoft.VisualStudio.Debugger.Exceptions.DkmExceptionProcessingStage * uint32 * uint64 * uint64 * System.Collections.ObjectModel.ReadOnlyCollection<uint64> -> Microsoft.VisualStudio.Debugger.Native.DkmWin32ExceptionInformation
Public Shared Function Create (RuntimeInstance As DkmRuntimeInstance, Thread As DkmThread, InstructionAddress As DkmInstructionAddress, Code As UInteger, ProcessingStage As DkmExceptionProcessingStage, ExceptionFlags As UInteger, ParentExceptionRecordAddress As ULong, Address As ULong, ExceptionParameters As ReadOnlyCollection(Of ULong)) As DkmWin32ExceptionInformation

参数

RuntimeInstance
DkmRuntimeInstance

中DkmRuntimeInstance 类表示加载到 DkmProcess 中的执行环境,其中包含要调试的代码。

Thread
DkmThread

中DkmThread 表示在目标进程中运行的线程。

InstructionAddress
DkmInstructionAddress

[In,可选]发生异常的地址。 这对于 c + + 和 Win32 异常将始终存在。 CLR 异常或 Mda 可能缺少此项,因为它们可能源自运行时内部。

Code
UInt32

[In] 用于异常的32位整数代码。 对于 Win32 异常,这是传递给 RaiseException 的代码, (例如: EXCEPTION_ACCESS_VIOLATION) 。 对于通过字符串标识异常的异常类别,此值为零 (ex: CLR) 。

ProcessingStage
DkmExceptionProcessingStage

中调试器将在异常处理中的不同阶段接收来自目标进程的通知 (例如:引发了异常,异常未处理) 。 此枚举指示通知的阶段 () 。

ExceptionFlags
UInt32

中异常标志。 这可以为零以指示持续性异常,或 EXCEPTION_NONCONTINUABLE 指示不可继续操作异常。

ParentExceptionRecordAddress
UInt64

中目标进程中的地址,可在该位置找到父 EXCEPTION_RECORD 指针。 此值通常为零。

Address
UInt64

中发生异常的地址。

ExceptionParameters
ReadOnlyCollection<UInt64>

中引发异常时传递的参数。 在处理硬件故障 ((例如:访问冲突) ,或者可以从 kernel32.dll 传递这些参数时,可以从内核传递这些参数!软件异常的 RaiseException。

返回

DkmWin32ExceptionInformation

弄此方法调用的结果。

适用于