Partager via


_seh_filter_dll, _seh_filter_exe

Identifie l’exception et l’action associée à entreprendre.

Syntaxe

int __cdecl _seh_filter_dll(
   unsigned long exceptionNum,
   struct _EXCEPTION_POINTERS* exceptionPtr
);
int __cdecl _seh_filter_exe(
   unsigned long exceptionNum,
   struct _EXCEPTION_POINTERS* exceptionPtr
);

Paramètres

exceptionNum
L’identificateur de l’exception.

exceptionPtr
Pointeur vers les informations sur l’exception.

Valeur retournée

Entier qui indique l’action à entreprendre, en fonction du résultat du traitement de l’exception.

Notes

Ces méthodes sont appelées par l’expression de filtre d’exception de l’ try-except Statement. La méthode consulte une table interne de constantes pour identifier l’exception, et déterminer l’action appropriée, comme indiqué ici. Les numéros relatifs aux exceptions sont définis dans winnt.h, alors que les numéros relatifs aux signaux sont définis dans signal.h.

Numéro d’exception (long non signé) Numéro de signal
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

Par défaut, l’état global de cette fonction est limité à l’application. Pour modifier ce comportement, consultez État global dans le CRT.

Spécifications

En-tête : corecrt_startup.h

Voir aussi

Informations de référence sur les fonctions alphabétiques