home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / seterrm.c < prev    next >
C/C++ Source or Header  |  1998-06-17  |  990b  |  40 lines

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