Expand Minimize

ExRaiseAccessViolation routine

The ExRaiseAccessViolation routine can be used with structured exception handling to throw a driver-determined exception for a memory access violation that occurs when a driver processes I/O requests.

Syntax


VOID  ExRaiseAccessViolation(void);

Parameters

This routine has no parameters.

Return value

None

Remarks

ExRaiseAccessViolation raises an exception with the exception code set to STATUS_ACCESS_VIOLATION.

Because ExRaiseAccessViolation can only be used at IRQL = PASSIVE_LEVEL, only high-level drivers typically use this routine—for example, file system drivers.

Requirements

Target platform

Universal

Version

Available in Windows 2000 and later versions of Windows.

Header

Ntddk.h (include Ntddk.h)

Library

Ntoskrnl.lib

IRQL

PASSIVE_LEVEL (see Remarks section)

DDI compliance rules

IrqlExPassive, PowerIrpDDis, HwStorPortProhibitedDDIs

See also

ExRaiseDatatypeMisalignment
ExRaiseStatus
IoAllocateErrorLogEntry
KeBugCheckEx

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft