NtDllNtRaiseHardError Method

This function sends HARDERROR_MSG LPC message to listener (typically CSRSS.EXE).

This function is called to cause a BSOD (Blue Screen of Death) with specific information.

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("NtDll.dll", SetLastError = true)]
public static uint NtRaiseHardError(
	NTStatus errorStatus,
	uint numberOfParameters,
	uint unicodeStringParameterMask,
	IntPtr parameters,
	HardErrorResponseOption validResponseOption,
	ref HardErrorResponse refResponse
)

Parameters

errorStatus  NTStatus
The NTStatus error code.
numberOfParameters  UInt32
Number of optional parameters in parameters array.
unicodeStringParameterMask  UInt32
Optional string parameter (can be only one per error code).
parameters  IntPtr
Array of parameters for use in error message string.
validResponseOption  HardErrorResponseOption
Specifies the response option.
refResponse  HardErrorResponse
Pointer to a HardErrorResponse enumeration.

Return Value

UInt32
(Not documented)

Remarks

See Also