INtime SDK Help
SetRtExceptionHandler
INtime SDK v7 > About INtime > INtime Kernel > Exception handling > SetRtExceptionHandler
Note: since Structured Exception Handling was generally enabled in INtime 4, and enabled for floating-point exceptions in INtime 6, it is no longer recommended that you use this system call.

Assigns an exception handler and exception mode or changes the current mode for any of the following:

BOOLEAN SetRtExceptionHandler(
    PEXCEPTION lpInfo // pointer to EXCEPTION structure
);

Parameters

lpInfo
Pointer to the EXCEPTION structure. This structure must be initialized with the required values for the exception handler and exception mode.

Return Values

TRUE
Success
FALSE
To determine the status, call GetLastRtError

Status

E_OK 0x0000
No exceptional conditions occurred.
E_BAD_ADDR 0x800F
lpInfo is invalid. One of these conditions exist:
  • All or part of lpInfo is outside the calling thread's virtual address space.
  • The virtual address space has no associated physical memory.
E_PARAM 0x8004
lpInfo contains a value outside the allowable range.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/rtbase.h rt.h rt.lib

Notes

This function operates in the real-time portion of your application.

See Also

Exception handler system calls, GetRtExceptionHandlerInfo,