OS/2 Exception API Differences

The following describes the implementation differences between the OS2Linux library and the real OS/2 exception APIs.

These APIs are included in your application by including the following definition in your application source file.

#define INCL_DOSEXCEPTIONS

DosSetExceptionHandler

APIRET APIENTRY DosSetExceptionHandler(PEXCEPTIONREGISTRATIONRECORD pERegRec);

DosUnsetExceptionHandler

APIRET APIENTRY DosUnsetExceptionHandler(PEXCEPTIONREGISTRATIONRECORD pERegRec);

DosRaiseException

APIRET APIENTRY DosRaiseException(PEXCEPTIONREPORTRECORD pexcept);

DosSendSignalException

APIRET APIENTRY DosSendSignalException(PID pid, ULONG exception);

DosUnwindException

APIRET APIENTRY DosUnwindException(PEXCEPTIONREGISTRATIONRECORD phandler,
                                   PVOID pTargetIP,
                                   PEXCEPTIONREPORTRECORD pERepRec);

DosSetSignalExceptionFocus

APIRET APIENTRY DosSetSignalExceptionFocus(BOOL32 flag, PULONG pulTimes);

DosEnterMustComplete

APIRET APIENTRY DosEnterMustComplete(PULONG pulNesting);

DosExitMustComplete

APIRET APIENTRY DosExitMustComplete(PULONG pulNesting);

DosAcknowledgeSignalException

APIRET APIENTRY DosAcknowledgeSignalException(ULONG ulSignalNum);

DosQueryThreadContext

APIRET APIENTRY DosQueryThreadContext(TID tid, ULONG level, PCONTEXTRECORD pcxt);