Kernel32FatalAppExit Method

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(UInt32, String).

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", CharSet = CharSet.Auto, BestFitMapping = false, 
	ThrowOnUnmappableChar = true)]
public static void FatalAppExit(
	uint action,
	string messageText
)

Parameters

action  UInt32
This parameter must be zero
messageText  String
The null-terminated string that is displayed in the message box.

Remarks

See Also