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.

45 lines
1.1 KiB

  1. /***
  2. *seterrm.c - Set mode for handling critical errors
  3. *
  4. * Copyright (c) 1992-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * Defines signal() and raise().
  8. *
  9. *Revision History:
  10. * 08-21-92 BWM Wrote for Win32.
  11. * 09-29-93 GJF Resurrected for compatibility with NT SDK (which had
  12. * the function). Replaced _CALLTYPE1 with __cdecl and
  13. * removed Cruiser support.
  14. *
  15. *******************************************************************************/
  16. #include <cruntime.h>
  17. #include <oscalls.h>
  18. /***
  19. *void _seterrormode(mode) - set the critical error mode
  20. *
  21. *Purpose:
  22. *
  23. *Entry:
  24. * int mode - error mode:
  25. *
  26. * 0 means system displays a prompt asking user how to
  27. * respond to the error. Choices differ depending on the
  28. * error but may include Abort, Retry, Ignore, and Fail.
  29. *
  30. * 1 means the call system call causing the error will fail
  31. * and return an error indicating the cause.
  32. *
  33. *Exit:
  34. * none
  35. *
  36. *Exceptions:
  37. *
  38. *******************************************************************************/
  39. void __cdecl _seterrormode(int mode)
  40. {
  41. SetErrorMode(mode);
  42. }