DosExitMustComplete

Provides exit from a section of code in which asynchronous exceptions are held.

Syntax
DosExitMustComplete(pulNesting)

Parameters

 * pulNesting (PULONG) - output : Pointer to the nesting level.
 * The nesting level is equal to the number of DosEnterMustComplete requests minus the number of DosExitMustComplete requests for the current thread.

Return Code

 * ulrc (APIRET) - returns:DosExitMustComplete returns one of the following values:
 * 0 NO_ERROR
 * 300 ERROR_ALREADY_RESET

Remarks
Note: Do not make Presentation Manager calls from exception handlers.

DosExitMustComplete notifies the system that the calling thread is leaving a section of code in which any asynchronous exceptions (signals and asynchronous process terminations) that may have occurred were held, rather than being immediately delivered to the thread.

Related Functions

 * DosAcknowledgeSignalException
 * DosEnterMustComplete
 * DosRaiseException
 * DosSendSignalException
 * DosSetExceptionHandler
 * DosSetSignalExceptionFocus
 * DosUnsetExceptionHandler
 * DosUnwindException