Freigeben über


IDebugThread2::Suspend

Suspends a thread.

HRESULT Suspend ( 
   DWORD *pdwSuspendCount
);
HRESULT Suspend ( 
   out uint pdwSuspendCount
);

Parameters

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

Return Value

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

Remarks

Each call to this method increments the suspend count above 0. This suspend count is displayed in the Threads debug window.

For each call to this method, there must be a later call to the IDebugThread2::Resume method.

See Also

Reference

IDebugThread2

IDebugThread2::Resume