Kernel32WerRegisterRuntimeExceptionModule Method
Registers a custom runtime exception handler that is used to provide custom error reporting for crashes.
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,
ExactSpelling = true, ThrowOnUnmappableChar = true)]
public static HResult WerRegisterRuntimeExceptionModule(
string outOfProcessCallbackDll,
IntPtr context
)
<DllImportAttribute("Kernel32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ExactSpelling := true, ThrowOnUnmappableChar := true>]
Public Shared Function WerRegisterRuntimeExceptionModule (
outOfProcessCallbackDll As String,
context As IntPtr
) As HResult
Dim outOfProcessCallbackDll As String
Dim context As IntPtr
Dim returnValue As HResult
returnValue = Kernel32.WerRegisterRuntimeExceptionModule(outOfProcessCallbackDll,
context)
public:
[DllImportAttribute(L"Kernel32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true)]
static HResult WerRegisterRuntimeExceptionModule(
String^ outOfProcessCallbackDll,
IntPtr context
)
[<DllImportAttribute("Kernel32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true)>]
static member WerRegisterRuntimeExceptionModule :
outOfProcessCallbackDll : string *
context : IntPtr -> HResult
No code example is currently available or this language may not be supported.
- outOfProcessCallbackDll String
-
The name of the exception handler DLL to register.
- context IntPtr
-
A pointer to arbitrary context information that is passed to the handler's callback functions.
HResult
Returns
S_OK on success, or an
HResult error code on failure.