Compartilhar via


IDebugEngineProgram2::Stop

Note

This article applies to Visual Studio 2015. 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

Stops all threads running in this program.

Syntax

HRESULT Stop(   
   void   
);  
int Stop();  

Return Value

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

Remarks

This method is called when this program is being debugged in a multi-program environment. When a stopping event from some other program is received, this method is called on this program. The implementation of this method should be asynchronous; that is, not all threads should be required to be stopped before this method returns. The implementation of this method may be as simple as calling the CauseBreak method on this program.

No debug event is sent in response to this method.

See Also

IDebugEngineProgram2
CauseBreak