IDkmBreakpointManager.EnrollPendingBreakpoint 方法

定义

此方法将注册挂起断点但不启用它。 结果是断点管理器将尝试解析的断点,但不会激发。 注册挂起断点包含尝试针对当前加载的任何模块解析断点,并将断点添加到断点列表,断点管理器将在任何模块加载时绑定断点。

public:
 void EnrollPendingBreakpoint(Microsoft::VisualStudio::Debugger::Breakpoints::DkmPendingBreakpoint ^ pendingBreakpoint, Microsoft::VisualStudio::Debugger::DkmWorkList ^ workList, Microsoft::VisualStudio::Debugger::DkmCompletionRoutine<Microsoft::VisualStudio::Debugger::Breakpoints::DkmEnrollPendingBreakpointAsyncResult> ^ completionRoutine);
public void EnrollPendingBreakpoint (Microsoft.VisualStudio.Debugger.Breakpoints.DkmPendingBreakpoint pendingBreakpoint, Microsoft.VisualStudio.Debugger.DkmWorkList workList, Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Breakpoints.DkmEnrollPendingBreakpointAsyncResult> completionRoutine);
abstract member EnrollPendingBreakpoint : Microsoft.VisualStudio.Debugger.Breakpoints.DkmPendingBreakpoint * Microsoft.VisualStudio.Debugger.DkmWorkList * Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Breakpoints.DkmEnrollPendingBreakpointAsyncResult> -> unit
Public Sub EnrollPendingBreakpoint (pendingBreakpoint As DkmPendingBreakpoint, workList As DkmWorkList, completionRoutine As DkmCompletionRoutine(Of DkmEnrollPendingBreakpointAsyncResult))

参数

pendingBreakpoint
DkmPendingBreakpoint

中与用户级构造关联的高级别断点对象 (ex:源文件、函数名称) ,它可映射到零个或多个代码级别构造 (DkmBoundBreakpoint) ,并且可能会在一段时间内进行跟踪。

workList
DkmWorkList

当前正在处理的 "当前"。 此值可用于检查取消或追加额外的工作。 直到此函数返回后,新的工作项才会开始执行。

completionRoutine
DkmCompletionRoutine<DkmEnrollPendingBreakpointAsyncResult>

请求完成时要触发的例程。 如果实现从此接口方法返回失败,将隐式触发此错误。 实现必须在所有其他情况下激发此方法。

适用于