簡介
定義
void FatalAppExit(UINT uAction, LPCTSTR lpMessageText);
參數
uAction
Reserved; must be zero.
lpMessageText
Pointer to a null-terminated string that is displayed in the message box.
返回值
This function does not return a value.
說明
An application calls 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 the system. An application that encounters an unexpected error should terminate by freeing all its memory and returning from its main message loop.
系統要求
Client: Requires Windows XP, Windows 2000 Professional, Windows NT Workstation, Windows Me, Windows 98, or Windows 95.
Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server.
Header: Declared in Winbase.h; include Windows.h.
Library: Link to Kernel32.lib.
DLL: Requires Kernel32.dll.
Unicode: Implemented as FatalAppExitW (Unicode) and FatalAppExitA (ANSI). Note that Unicode support on Windows Me/98/95 requires Microsoft Layer for Unicode.