void FatalExit(Code)
This function displays the current state of Windows on the debugging monitor and prompts for instructions on how to proceed. The display includes an error code, the Code parameter, followed by a symbolic stack trace, showing the flow of execution up to the point of call.
An application should call this function only for debugging purposes; it should not call the function in a retail version of the application. Calling this function in the retail version will terminate the application.
Parameter | Type/Description |
Code | int Specifies the error code to be displayed. |
None.
The FatalExit function prompts the user to respond to an “Abort, Break or Ignore” message. FatalExit processes the response as follows:
Response | Description |
A (Abort) | Terminates Windows. | |
B (Break) | Simulates a non-maskable interrupt (NMI) to enter the debugger. | |
I (Ignore) | Returns to the caller. |
The FatalExit function is for debugging only.
An application should call this function whenever the application detects a fatal error. All input and output is received and transmitted through the computer's auxiliary port (AUX) or through the debugger if a debugger is installed.