次の方法で共有


IDebugThread2::Resume

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Resumes execution of a thread.

Syntax

HRESULT Resume ( 
   DWORD *pdwSuspendCount
);
int Resume ( 
   out uint pdwSuspendCount
);

Parameters

pdwSuspendCount
[out] Returns the suspend count after the resume operation.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

Each call to this method decrements the suspend count until it reaches 0 at which time, execution is actually resumed. This suspend count is displayed in the Threads debug window.

For each call to this method, there must be a previous call to the Suspend method. The suspend count determines how many times the IDebugThread2::Suspend method has been called so far.

See also