#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
);
View code on GitHub// rtlsupportapi.h
NTSYSAPI VOID RtlRaiseException(
[in] PEXCEPTION_RECORD ExceptionRecord
);
View the official Win32 API referenceThis function is documented in Windows SDK.
Raises an exception.
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.
This function does not return a value.