Partager via


_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.

Syntax

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.

Return Value

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

Remarks

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_VIOLATION SIGSEGV
STATUS_ILLEGAL_INSTRUCTION SIGILL
STATUS_PRIVILEGED_INSTRUCTION SIGILL
STATUS_FLOAT_DENORMAL_OPERAND SIGFPE
STATUS_FLOAT_DIVIDE_BY_ZERO SIGFPE
STATUS_FLOAT_INEXACT_RESULT SIGFPE
STATUS_FLOAT_INVALID_OPERATION SIGFPE
STATUS_FLOAT_OVERFLOW SIGFPE
STATUS_FLOAT_STACK_CHECK SIGFPE
STATUS_FLOAT_UNDERFLOW SIGFPE

Requirements

Header: corecrt_startup.h

See Also

Alphabetical Function Reference