RtlRaiseException - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTXCAPI_H

/**
 * Raises an exception in the calling thread.
 *
 * @param ExceptionRecord A pointer to an EXCEPTION_RECORD structure that contains the exception information. You must specify the ExceptionAddress and ExceptionCode members.
 * @return This function does not return a value.
 * @see https://learn.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-raiseexception
 */
NTSYSAPI
VOID
NTAPI
RtlRaiseException(
    _In_ PEXCEPTION_RECORD ExceptionRecord
    );

#endif

View code on GitHub
// rtlsupportapi.h

NTSYSAPI VOID RtlRaiseException(
  [in] PEXCEPTION_RECORD ExceptionRecord
);
View the official Win32 API reference

NtDoc

This function is documented in Windows SDK.

Win32 API reference (nf-rtlsupportapi-rtlraiseexception)

RtlRaiseException function

Description

Raises an exception.

Parameters

ExceptionRecord [in]

Address of an EXCEPTION_RECORD structure that describes the exception, and the parameters of the exception, that is raised. Raising a software exception captures the machine state of the current thread in a context record. The ExceptionAddress member of the exception record is set to the caller's return address.

Return value

This function does not return a value.

See also

EXCEPTION_RECORD