This article applies to Visual Studio 2015. If you're looking for Visual Studio 2017 documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2017. Download it here.
Specifies how the debug engine (DE) should handle a given exception.
HRESULT SetException( EXCEPTION_INFO* pException );
int SetException( EXCEPTION_INFO pException );
[in] An EXCEPTION_INFO structure that describes the exception and how to debug it.
If successful, returns
S_OK; otherwise, returns an error code.
A DE could be instructed to stop the program generating an exception at first chance, second chance, or not at all.