Skip to content

Latest commit

 

History

History
67 lines (51 loc) · 2.51 KB

seh-filter-dll-seh-filter-exe.md

File metadata and controls

67 lines (51 loc) · 2.51 KB
description title ms.date api_name api_location api_type topic_type f1_keywords helpviewer_keywords ms.assetid
Learn more about: _seh_filter_dll, _seh_filter_exe
_seh_filter_dll, _seh_filter_exe
4/2/2020
_XcptFilter
_seh_filter_dll
_seh_filter_exe
_o__seh_filter_dll
_o__seh_filter_exe
msvcrt.dll
msvcr80.dll
msvcr90.dll
msvcr100.dll
msvcr100_clr0400.dll
msvcr110.dll
msvcr110_clr0400.dll
msvcr120.dll
msvcr120_clr0400.dll
ucrtbase.dll
api-ms-win-crt-runtime-l1-1-0.dll
DLLExport
apiref
XcptFilter
_XcptFilter
_seh_filter_dll
_seh_filter_exe
corecrt_startup/_seh_filter_exe
corecrt_startup/_seh_filter_dll
XcptFilter function
_XcptFilter function
_seh_filter_dll function
_seh_filter_exe function
747e5963-3a12-4bf5-b5c4-d4c1b6068e15

_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

exceptionNum
The identifier for the exception.

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

By default, this function's global state is scoped to the application. To change this behavior, see Global state in the CRT.

Requirements

Header: corecrt_startup.h

See also

Alphabetical function reference