ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

Definition at line 84 of file exception.c.

Referenced by _purecall(), CcCopyWrite(), CcZeroData(), CsrProbeForRead(), CsrProbeForWrite(), ExRaiseAccessViolation(), ExRaiseDatatypeMisalignment(), FsRtlAreNamesEqual(), GetStartupInfoA(), InitializeCriticalSection(), KeSuspendThread(), LdrLockLoaderLock(), LdrpInit(), LdrpSnapThunk(), LdrUnlockLoaderLock(), RtlDeactivateActivationContext(), RtlDeactivateActivationContextUnsafeFast(), RtlInitializeResource(), RtlpCreateCriticalSectionSem(), RtlpUnWaitCriticalSection(), RtlRaiseException(), RtlRaiseStatus(), RtlReleaseSRWLockExclusive(), RtlReleaseSRWLockShared(), and SeCaptureSecurityDescriptor().

{
    EXCEPTION_RECORD ExceptionRecord;
    CONTEXT Context;

     /* Capture the context */
    RtlCaptureContext(&Context);

    /* Create an exception record */
    ExceptionRecord.ExceptionAddress = _ReturnAddress();
    ExceptionRecord.ExceptionCode  = Status;
    ExceptionRecord.ExceptionRecord = NULL;
    ExceptionRecord.NumberParameters = 0;
    ExceptionRecord.ExceptionFlags = EXCEPTION_NONCONTINUABLE;

    /* Write the context flag */
    Context.ContextFlags = CONTEXT_FULL;

    /* Check if user mode debugger is active */
    if (RtlpCheckForActiveDebugger())
    {
        /* Raise an exception immediately */
        ZwRaiseException(&ExceptionRecord, &Context, TRUE);
    }
    else
    {
        /* Dispatch the exception */
        RtlDispatchException(&ExceptionRecord, &Context);

        /* Raise exception if we got here */
        Status = ZwRaiseException(&ExceptionRecord, &Context, FALSE);
    }

    /* If we returned, raise a status */
    RtlRaiseStatus(Status);
}

Generated on Sat May 26 2012 06:04:04 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.