DkmProcess.WaitForPausingEventProcessingComplete(Int32, Boolean) 方法

定义

此方法可从 "监视" 组件调用,以等待任何非停止、暂停事件处理以及当前正在完成的任何 IDkmProcessContinueNotification 处理。 除此之外,在尝试中止评估时,这会很有帮助,因为确保目标进程有机会运行。 请注意,此方法不提供任何可立即暂停事件的保证,因此代码不应假定在从此 API 返回后,不会发生停止事件处理。

位置约束:必须从监视器组件 (组件级别 100000) 中调用 API < 。

此 API 是在 Visual Studio 15 Update 6 (VS15Update6) 中引入的。

public:
 void WaitForPausingEventProcessingComplete(int Timeout, [Runtime::InteropServices::Out] bool % Waited);
public void WaitForPausingEventProcessingComplete (int Timeout, out bool Waited);
member this.WaitForPausingEventProcessingComplete : int * bool -> unit
Public Sub WaitForPausingEventProcessingComplete (Timeout As Integer, ByRef Waited As Boolean)

参数

Timeout
Int32

中要等待的超时(以毫秒为单位)。 -1 (无限大 in c + +) 以永久等待。

Waited
Boolean

弄如果此方法成功并且需要等待事件处理在返回前完成,则为 True。

适用于