VOID INLINE RaiseAccessError (ULONG Exception_number, ULONG Violation_flags)
{
  EXCEPTIONREPORTRECORD Exception_record = {
                                            .ExceptionNum = Exception_number,
                                            .ExceptionInfo[0] = Violation_flags,
                                            .cParameters = 1
                                           };

  DosRaiseException (&Exception_record);
}