Export (0) Print
Expand All
div
eof
Expand Minimize
This topic has not yet been rated - Rate this topic

_XcptFilter

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.