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.

108 lines
4.1 KiB

  1. /***
  2. *rterr.h - runtime errors
  3. *
  4. * Copyright (c) 1990-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * This file defines the C runtime errors
  8. *
  9. * [Internal]
  10. *
  11. *Revision History:
  12. * 06-01-90 GJF Module created.
  13. * 08-08-90 GJF Added _RT_CONIO, redefined _RT_NONCONT and
  14. * _RT_INVALDISP.
  15. * 09-08-91 GJF Added _RT_ONEXIT for Win32 (_WIN32_).
  16. * 09-28-91 GJF Fixed conflict with RTEs in 16-bit Win support. Also,
  17. * added three math errors.
  18. * 10-23-92 GJF Added _RT_PUREVIRT.
  19. * 02-23-93 SKS Update copyright to 1993
  20. * 02-14-95 CFW Clean up Mac merge.
  21. * 03-03-95 GJF Added _RT_STDIOINIT.
  22. * 03-29-95 CFW Add error message to internal headers.
  23. * 06-02-95 GJF Added _RT_LOWIOINIT.
  24. * 12-14-95 JWM Add "#pragma once".
  25. * 04-23-96 GJF Added _RT_HEAPINIT.
  26. * 02-24-97 GJF Detab-ed.
  27. *
  28. ****/
  29. #if _MSC_VER > 1000 /*IFSTRIP=IGN*/
  30. #pragma once
  31. #endif
  32. #ifndef _INC_RTERR
  33. #define _INC_RTERR
  34. #ifndef _CRTBLD
  35. /*
  36. * This is an internal C runtime header file. It is used when building
  37. * the C runtimes only. It is not to be used as a public header file.
  38. */
  39. #error ERROR: Use of C runtime library internal header file.
  40. #endif /* _CRTBLD */
  41. #define _RT_STACK 0 /* stack overflow */
  42. #define _RT_NULLPTR 1 /* null pointer assignment */
  43. #define _RT_FLOAT 2 /* floating point not loaded */
  44. #define _RT_INTDIV 3 /* integer divide by 0 */
  45. /*
  46. * the following three errors must be in the given order!
  47. */
  48. #define _RT_EXECMEM 5 /* not enough memory on exec */
  49. #define _RT_EXECFORM 6 /* bad format on exec */
  50. #define _RT_EXECENV 7 /* bad environment on exec */
  51. #define _RT_SPACEARG 8 /* not enough space for arguments */
  52. #define _RT_SPACEENV 9 /* not enough space for environment */
  53. #define _RT_ABORT 10 /* Abnormal program termination */
  54. #define _RT_NPTR 12 /* illegal near pointer use */
  55. #define _RT_FPTR 13 /* illegal far pointer use */
  56. #define _RT_BREAK 14 /* control-BREAK encountered */
  57. #define _RT_INT 15 /* unexpected interrupt */
  58. #define _RT_THREAD 16 /* not enough space for thread data */
  59. #define _RT_LOCK 17 /* unexpected multi-thread lock error */
  60. #define _RT_HEAP 18 /* unexpected heap error */
  61. #define _RT_OPENCON 19 /* unable to open console device */
  62. /*
  63. * _RT_QWIN and _RT_NOMAIN are used in 16-bit Windows support
  64. */
  65. #define _RT_QWIN 20 /* unexpected QuickWin error */
  66. #define _RT_NOMAIN 21 /* no main procedure */
  67. #define _RT_NONCONT 22 /* non-continuable exception */
  68. #define _RT_INVALDISP 23 /* invalid disposition of exception */
  69. /*
  70. * _RT_ONEXIT is specific to Win32 and Dosx32 platforms
  71. */
  72. #define _RT_ONEXIT 24 /* insufficient heap to allocate
  73. * initial table of funct. ptrs
  74. * used by _onexit()/atexit(). */
  75. #define _RT_PUREVIRT 25 /* pure virtual function call attempted
  76. * (C++ error) */
  77. #define _RT_STDIOINIT 26 /* not enough space for stdio initial-
  78. * ization */
  79. #define _RT_LOWIOINIT 27 /* not enough space for lowio initial-
  80. * ization */
  81. #define _RT_HEAPINIT 28 /* heap failed to initialize */
  82. /*
  83. * _RT_DOMAIN, _RT_SING and _RT_TLOSS are generated by the floating point
  84. * library.
  85. */
  86. #define _RT_DOMAIN 120
  87. #define _RT_SING 121
  88. #define _RT_TLOSS 122
  89. #define _RT_CRNL 252
  90. #define _RT_BANNER 255
  91. #endif /* _INC_RTERR */