IDkmThreadSuspension.Suspend(DkmThread, Boolean) Method

Definition

Suspend this thread.

public:
 System::UInt32 Suspend(Microsoft::VisualStudio::Debugger::DkmThread ^ thread, bool internalSuspension);
public uint Suspend (Microsoft.VisualStudio.Debugger.DkmThread thread, bool internalSuspension);
abstract member Suspend : Microsoft.VisualStudio.Debugger.DkmThread * bool -> uint32
Public Function Suspend (thread As DkmThread, internalSuspension As Boolean) As UInteger

Parameters

thread
DkmThread

[In] DkmThread represents a thread running in the target process.

internalSuspension
Boolean

[In] Pass true if this suspension should be hidden in calls to GetSuspensionCount. This is useful for internal suspensions that should not be reported to the user such as thread slippage suspensions.

Returns

[Out,Optional] The previous number of suspensions for this thread minus the ones internal to the debugger.

Applies to