Kernel32RaiseException Method
Raises an exception in the calling thread.
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", ExactSpelling = true)]
public static void RaiseException(
uint exceptionCode,
ExceptionFlags exceptionFlags,
uint numberOfArguments,
IntPtr arguments
)
<DllImportAttribute("Kernel32.dll", ExactSpelling := true>]
Public Shared Sub RaiseException (
exceptionCode As UInteger,
exceptionFlags As ExceptionFlags,
numberOfArguments As UInteger,
arguments As IntPtr
)
Dim exceptionCode As UInteger
Dim exceptionFlags As ExceptionFlags
Dim numberOfArguments As UInteger
Dim arguments As IntPtr
Kernel32.RaiseException(exceptionCode,
exceptionFlags, numberOfArguments,
arguments)
public:
[DllImportAttribute(L"Kernel32.dll", ExactSpelling = true)]
static void RaiseException(
unsigned int exceptionCode,
ExceptionFlags exceptionFlags,
unsigned int numberOfArguments,
[InAttribute] IntPtr arguments
)
[<DllImportAttribute("Kernel32.dll", ExactSpelling = true)>]
static member RaiseException :
exceptionCode : uint32 *
exceptionFlags : ExceptionFlags *
numberOfArguments : uint32 *
arguments : IntPtr -> unit
No code example is currently available or this language may not be supported.
Parameters
- exceptionCode UInt32
-
An application-defined exception code of the exception being raised.
The filter expression and exception-handler block of an exception handler can use the
GetExceptionCode macro (or GetExceptionCode) to retrieve this value.
Note that the system will clear bit 28 of exceptionCode before displaying a message:
"This bit is a reserved exception bit", used by the system for its own purposes.
- exceptionFlags ExceptionFlags
-
The exception flags.
This can be either Continuable to indicate a continuable exception,
or NonContinuable to indicate a noncontinuable exception.
Any attempt to continue execution after a noncontinuable exception causes the EXCEPTION_NONCONTINUABLE_EXCEPTION exception.
- numberOfArguments UInt32
-
The number of arguments in the lpArguments array. This value must not exceed EXCEPTION_MAXIMUM_PARAMETERS.
This parameter is ignored if arguments is Zero.
- arguments IntPtr
-
An array of arguments. This parameter can be Zero.
These arguments can contain any application-defined data that needs to be passed to the filter expression of the exception handler.