Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer


This interface is sent by the debug engine (DE) to the session debug manager (SDM) when a program has run to completion.

IDebugProgramDestroyEvent2 : IUnknown

The DE or the custom port supplier implements this interface to report that a program has been terminated and is no longer available for debugging. The IDebugEvent2 interface must be implemented on the same object as this interface. The SDM uses QueryInterface to access the IDebugEvent2 interface.

The DE or the custom port supplier creates and sends this event object to report the termination of a program. The DE sends this event by using the IDebugEventCallback2 callback function that is supplied by the SDM when it attached to the program being debugged. The custom port supplier sends this event using the IDebugPortEvents2 interface.

The following table shows the method of IDebugProgramDestroyEvent2.

Method Description


Gets the program's exit code.

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

© 2015 Microsoft