_seh_filter_dll, _seh_filter_exe

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at _seh_filter_dll, _seh_filter_exe.

Identifies the exception and the related action to be taken.

int __cdecl _seh_filter_dll(  
   unsigned long _ExceptionNum,  
   struct _EXCEPTION_POINTERS* _ExceptionPtr  
);  
int __cdecl _seh_filter_exe(  
   unsigned long _ExceptionNum,  
   struct _EXCEPTION_POINTERS* _ExceptionPtr  
);  

Parameters

[in] _ExceptionNum
The identifier for the exception.

[in] _ExceptionPtr
A pointer to the exception information.

An integer that indicates the action to be taken, based on the result of exception processing.

These methods are called by the exception-filter expression of the try-except Statement. The method consults a constant internal table to identify the exception and determine the appropriate action, as shown here. The exception numbers are defined in winnt.h and the signal numbers are defined in signal.h.

Exception Number (unsigned long)Signal Number
STATUS_ACCESS_VIOLATIONSIGSEGV
STATUS_ILLEGAL_INSTRUCTIONSIGILL
STATUS_PRIVILEGED_INSTRUCTIONSIGILL
STATUS_FLOAT_DENORMAL_OPERANDSIGFPE
STATUS_FLOAT_DIVIDE_BY_ZEROSIGFPE
STATUS_FLOAT_INEXACT_RESULTSIGFPE
STATUS_FLOAT_INVALID_OPERATIONSIGFPE
STATUS_FLOAT_OVERFLOWSIGFPE
STATUS_FLOAT_STACK_CHECKSIGFPE
STATUS_FLOAT_UNDERFLOWSIGFPE

Header: corecrt_startup.h

Alphabetical Function Reference

Show: