共用方式為


IDebugEngineProgram2::Stop

Stops all threads running in this program.

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 IDebugProgram2::CauseBreak method on this program.

No debug event is sent in response to this method.

See Also

Reference

IDebugEngineProgram2

IDebugProgram2::CauseBreak