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.
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("NtDll.dll", SetLastError = true)]
public static uint NtRaiseHardError(
NTStatus errorStatus,
uint numberOfParameters,
uint unicodeStringParameterMask,
IntPtr parameters,
HardErrorResponseOption validResponseOption,
ref HardErrorResponse refResponse
)
<DllImportAttribute("NtDll.dll", SetLastError := true>]
Public Shared Function NtRaiseHardError (
errorStatus As NTStatus,
numberOfParameters As UInteger,
unicodeStringParameterMask As UInteger,
parameters As IntPtr,
validResponseOption As HardErrorResponseOption,
ByRef refResponse As HardErrorResponse
) As UInteger
Dim errorStatus As NTStatus
Dim numberOfParameters As UInteger
Dim unicodeStringParameterMask As UInteger
Dim parameters As IntPtr
Dim validResponseOption As HardErrorResponseOption
Dim refResponse As HardErrorResponse
Dim returnValue As UInteger
returnValue = NtDll.NtRaiseHardError(errorStatus,
numberOfParameters, unicodeStringParameterMask,
parameters, validResponseOption,
refResponse)
public:
[DllImportAttribute(L"NtDll.dll", SetLastError = true)]
static unsigned int NtRaiseHardError(
NTStatus errorStatus,
unsigned int numberOfParameters,
unsigned int unicodeStringParameterMask,
IntPtr parameters,
HardErrorResponseOption validResponseOption,
HardErrorResponse% refResponse
)
[<DllImportAttribute("NtDll.dll", SetLastError = true)>]
static member NtRaiseHardError :
errorStatus : NTStatus *
numberOfParameters : uint32 *
unicodeStringParameterMask : uint32 *
parameters : IntPtr *
validResponseOption : HardErrorResponseOption *
refResponse : HardErrorResponse byref -> uint32
No code example is currently available or this language may not be supported.
- 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.
UInt32
(Not documented)