Compartilhar via


_XcptFilter

Identifies the exception and the related action to be taken.

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

Parameters

  • [in] xcptnum
    The identifier for the exception.

  • [in] pxcptinfoptrs
    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

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

Requirements

Header: excpt.h

See Also

Other Resources

Alphabetical Function Reference

Change History

Date

History

Reason

June 2010

Added this document.

Information enhancement.

September 2010

Added the table for _XcptActTab.

Information enhancement.