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).
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("Kernel32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true>]
Public Shared Sub FatalAppExit (
action As UInteger,
messageText As String
)
Dim action As UInteger
Dim messageText As String
Kernel32.FatalAppExit(action, messageText)
public:
[DllImportAttribute(L"Kernel32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)]
static void FatalAppExit(
unsigned int action,
String^ messageText
)
[<DllImportAttribute("Kernel32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)>]
static member FatalAppExit :
action : uint32 *
messageText : string -> unit
No code example is currently available or this language may not be supported.
Parameters
- action UInt32
-
This parameter must be zero
- messageText String
-
The null-terminated string that is displayed in the message box.