DkmThread.GetSuspensionCount Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetSuspensionCount(Boolean) |
Return the current suspension count of this thread. |
GetSuspensionCount(DkmWorkList, Boolean, DkmCompletionRoutine<DkmGetSuspensionCountAsyncResult>) |
Return the current suspension count of this thread. This method will append a new work item to the specified work list, and return once the work item has been appended. The actual processing of the work item is asynchronous. The caller will be notified that the request is complete through the completion routine. |
GetSuspensionCount(Boolean)
Return the current suspension count of this thread.
public:
System::UInt32 GetSuspensionCount(bool ShowInternal);
public:
unsigned int GetSuspensionCount(bool ShowInternal);
unsigned int GetSuspensionCount(bool ShowInternal);
public uint GetSuspensionCount (bool ShowInternal);
member this.GetSuspensionCount : bool -> uint32
Public Function GetSuspensionCount (ShowInternal As Boolean) As UInteger
Parameters
- ShowInternal
- Boolean
[In] Pass true to return the true suspension count for the thread. Return false to only see the suspensions that occurred in the debuggee process or the one's that passed true for InternalSuspension to Suspend.
Returns
[Out] The suspension count of thread. The internal thread suspension count is subtracted from this value if ShowInternal is false.
Applies to
GetSuspensionCount(DkmWorkList, Boolean, DkmCompletionRoutine<DkmGetSuspensionCountAsyncResult>)
Return the current suspension count of this thread.
This method will append a new work item to the specified work list, and return once the work item has been appended. The actual processing of the work item is asynchronous. The caller will be notified that the request is complete through the completion routine.
public:
void GetSuspensionCount(Microsoft::VisualStudio::Debugger::DkmWorkList ^ WorkList, bool ShowInternal, Microsoft::VisualStudio::Debugger::DkmCompletionRoutine<Microsoft::VisualStudio::Debugger::ThreadProperties::DkmGetSuspensionCountAsyncResult> ^ CompletionRoutine);
public void GetSuspensionCount (Microsoft.VisualStudio.Debugger.DkmWorkList WorkList, bool ShowInternal, Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.ThreadProperties.DkmGetSuspensionCountAsyncResult> CompletionRoutine);
member this.GetSuspensionCount : Microsoft.VisualStudio.Debugger.DkmWorkList * bool * Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.ThreadProperties.DkmGetSuspensionCountAsyncResult> -> unit
Public Sub GetSuspensionCount (WorkList As DkmWorkList, ShowInternal As Boolean, CompletionRoutine As DkmCompletionRoutine(Of DkmGetSuspensionCountAsyncResult))
Parameters
- WorkList
- DkmWorkList
WorkList to append the new work item to.
- ShowInternal
- Boolean
[In] Pass true to return the true suspension count for the thread. Return false to only see the suspensions that occurred in the debuggee process or the one's that passed true for InternalSuspension to Suspend.
- CompletionRoutine
- DkmCompletionRoutine<DkmGetSuspensionCountAsyncResult>
Routine to fire when the request is complete. If the request is successfully appended to the work list, this will always fire (including when the operation is canceled). This will never fire if appending the work item fails.