Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1990 Microsoft Corporation
  3. Module Name:
  4. raisests.c
  5. Abstract:
  6. This module implements the routine that raises an exception given a
  7. specific status value.
  8. Author:
  9. David N. Cutler (davec) 8-Aug-1990
  10. Environment:
  11. Any mode.
  12. Revision History:
  13. --*/
  14. #include "ntrtlp.h"
  15. VOID
  16. RtlRaiseStatus (
  17. IN NTSTATUS Status
  18. )
  19. /*++
  20. Routine Description:
  21. This function raises an exception with the specified status value. The
  22. exception is marked as continuable with no parameters.
  23. Arguments:
  24. Status - Supplies the status value to be used as the exception code
  25. for the exception that is to be raised.
  26. Return Value:
  27. None.
  28. --*/
  29. {
  30. EXCEPTION_RECORD ExceptionRecord;
  31. //
  32. // Construct an exception record.
  33. //
  34. ExceptionRecord.ExceptionCode = Status;
  35. ExceptionRecord.ExceptionRecord = (PEXCEPTION_RECORD)NULL;
  36. ExceptionRecord.NumberParameters = 0;
  37. ExceptionRecord.ExceptionFlags = EXCEPTION_NONCONTINUABLE;
  38. RtlRaiseException(&ExceptionRecord);
  39. return;
  40. }