FatalAppExit

The FatalAppExit function displays a message box and terminates the application when the message box is closed. If the system is running with a debug version of Kernel32.dll, the message box gives the user the opportunity to terminate the application or to cancel the message box and return to the application that called FatalAppExit.

基本介紹

  • 中文名:FatalAppExit
  • 類型:函式
  • 定義:void FatalAppExit
  • 系統要求:Client
簡介,系統要求,

簡介

定義
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.

相關詞條

熱門詞條

聯絡我們