User32PostQuitMessage Method
Indicates to the system that a thread has made a request to terminate (quit).
It is typically used in response to a
WM_Destroy message.
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("User32.dll", ExactSpelling = true)]
public static void PostQuitMessage(
[OptionalAttribute] int exitCode
)
<DllImportAttribute("User32.dll", ExactSpelling := true>]
Public Shared Sub PostQuitMessage (
<OptionalAttribute> exitCode As Integer
)
Dim exitCode As Integer
User32.PostQuitMessage(exitCode)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true)]
static void PostQuitMessage(
[OptionalAttribute] int exitCode
)
[<DllImportAttribute("User32.dll", ExactSpelling = true)>]
static member PostQuitMessage :
[<OptionalAttribute>] exitCode : int -> unit
No code example is currently available or this language may not be supported.
Parameters
- exitCode Int32 (Optional)
-
The application exit code. This value is used as the wParam parameter of the WM_Quit message.