_XcptFilter
div
eof
TOC
Collapse the table of content
Expand the table of content

_XcptFilter

Updated: June 2010

Identifies the exception and the related action to be taken.

int __cdecl _XcptFilter(
   unsigned long xcptnum,
   PEXCEPTION_POINTERS pxcptinfoptrs
);

[in] xcptnum

The identifier for the exception.

[in] pxcptinfoptrs

A pointer to the exception information.

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

This method is called by the exception-filter expression of the try-except Statement. The method consults the _XcptActTab[] table to identify the exception and determine the appropriate action. _XcptActTab[] is a constant and is defined as shown in the following table. 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

Header: excpt.h

Date

History

Reason

June 2010

Added this document.

Information enhancement.

September 2010

Added the table for _XcptActTab.

Information enhancement.

Adiciones de comunidad

AGREGAR
Mostrar:
© 2016 Microsoft