Group: Error Handling - Library: kernel32
The FatalAppExit function displays a message box and terminates the application when the message box is closed.
Terminating VFP application using the FatalAppExit
VOID FatalAppExit(
UINT uAction, // reserved
LPCTSTR lpMessageText // display string
);
DECLARE FatalAppExit IN kernel32;
INTEGER uAction,;
STRING lpMessageText
uAction Reserved; must be zero.
lpMessageText [in] Pointer to a null-terminated string that is displayed in the message box.
This function does not return a value.
Even the name of this function I feel some evil in it. Hardly a reason exists to use it. In the succession of the good old QUIT, ExitProcess, TerminateProcess, PostQuitMessage etc. this function can be only the last resort.
I recollect an old joke about a computer frozen so deep that it took to reboot a power station.