DkmProcess.WaitForPausingEventProcessingComplete(Int32, Boolean) Method

Definition

This method can be called from a monitor component to wait for any non-stopping with pause event handling, as well as any IDkmProcessContinueNotification processing that is currently happening to finish. Among other things, this can be helpful when attempting to abort func-evals by making sure that the target process has an opportunity to run. Note that this method doesn't provide any guarantee that there will not immediately be more pausing events, so code shouldn't assume that after returning from this API no stopping event processing is happening.

Location constraint: API must be called from a Monitor component (component level < 100,000).

This API was introduced in Visual Studio 15 Update 6 (DkmApiVersion.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)

Parameters

Timeout
Int32

[In] Timeout in milliseconds to wait. -1 (INFINITE in C++) to wait forever.

Waited
Boolean

[Out] True if this method succeeded and if it needed to wait for event processing to finish before returning.

Applies to