VOID FatalAppExit(wAction,lpMessageText)
This function displays a message containing the text specified by the lpMessageText parameter and terminates the application when the message box is closed. When called under the debugging version of Windows, the message box gives the user the opportunity to terminate the application or to return to the caller.
Parameter | Type/Description |
wAction | WORD Is reserved and must be set to 0. | |
lpMessageText | LPSTR Points to a character string that is displayed in the message box. The message is displayed on a single line. To accommodate low-resolution displays, the string should be no more than 35 characters in length. |
None.
An application that encounters an unexpected error should terminate by freeing all its memory and then returning from its main message loop. It should call FatalAppExit only when it is not capable of terminating any other way. FatalAppExit may not always free an application's memory or close its files, and it may cause a general failure of Windows.