FatalAppExit

王朝百科·作者佚名  2010-05-18  
宽屏版  字体: |||超大  

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.

定义

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.

 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
© 2005- 王朝百科 版权所有