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.

128 lines
6.8 KiB

  1. /***MD sdmerror.h - System Detection Manager Error Codes
  2. *
  3. * This module contains System Detection Manager error codes.
  4. *
  5. * Copyright (c) 1992,1993 Microsoft Corporation
  6. * Author: Michael Tsang (MikeTs)
  7. * Created 03/14/94
  8. *
  9. * MODIFICATION HISTORY
  10. */
  11. #ifndef _INC_SDERROR
  12. #define _INC_SDERROR
  13. /*** System Detection Manager Errors (return values)
  14. */
  15. #define IDSERR_NONE 0 //no error (success)
  16. #define IDSERR_INVALID_PARAM 0x0001 //invalid service parameter
  17. #define IDSERR_OUTOFMEM 0x0002 //out of memory
  18. #define IDSERR_REG_ACCESS 0x0003 //error accessing registry
  19. #define IDSERR_SD_ALREADYOPEN 0x0004 //system detection already open
  20. #define IDSERR_SD_NOTOPEN 0x0005 //system detection not yet open
  21. #define IDSERR_HOOK_R0CODE 0x0006 //fail to hook Ring0 code
  22. #define IDSERR_DUPINF 0x0007 //inf already registered
  23. #define IDSERR_OPENINF 0x0008 //cannot open inf file
  24. #define IDSERR_INF_LISTSECT 0x0009 //cannot find inflist section
  25. #define IDSERR_INF_LISTLINE 0x000a //invalid inflist line
  26. #define IDSERR_INF_MODSECT 0x000b //cannot find module section
  27. #define IDSERR_INF_MODLINE 0x000c //invalid module line
  28. #define IDSERR_INF_MODNAME 0x000d //module name too long
  29. #define IDSERR_INF_FUNCSECT 0x000e //cannot find function section
  30. #define IDSERR_INF_FUNCLINE 0x000f //invalid function line
  31. #define IDSERR_LOADMOD 0x0010 //error loading module
  32. #define IDSERR_INF_CLASSNAME 0x0011 //inf err in class name
  33. #define IDSERR_INF_DANGERSECT 0x0012 //cannot find danger section
  34. #define IDSERR_INF_DANGERLINE 0x0013 //invalid danger line
  35. #define IDSERR_INF_DANGERFORMAT 0x0014 //invalid danger format
  36. #define IDSERR_DANGER_INVALID 0x0015 //invalid danger regions
  37. #define IDSERR_IOMEM_INVALID 0x0016 //invalid iomem regions
  38. #define IDSERR_IOMEM_CONFLICT 0x0017 //iomem resource conflict
  39. #define IDSERR_IRQDMA_INVALID 0x0018 //invalid irqdma resources
  40. #define IDSERR_IRQDMA_CONFLICT 0x0019 //irqdma resource conflict
  41. #define IDSERR_INF_BUSTYPE 0x001a //invalid detection bus type
  42. #define IDSERR_DETFUNC_DMSERR 0x001b //DMS error in detection
  43. #define IDSERR_DETFUNC_REGERR 0x001c //reg error in detection code
  44. #define IDSERR_DETFUNC_ERROR 0x001d //detection function error
  45. #define IDSERR_GENINSTALL 0x001e //GenInstallEx error
  46. #define IDSERR_NOSUCH_DEV 0x001f //device not found
  47. #define IDSERR_BUFF_TOOSMALL 0x0020 //buffer too small
  48. #define IDSERR_DEV_ALREADYREG 0x0021 //device ID already registered
  49. #define IDSERR_NOT_EISA 0x0022 //not an EISA system
  50. #define IDSERR_GETEISACONFIG 0x0023 //error getting EISA config
  51. #define IDSERR_INF_CLASS 0x0024 //error in getting INF class
  52. #define IDSERR_COPYLOGCONFIG 0x0025 //error in copying logconfig
  53. #define IDSERR_DUPFUNC 0x0026 //function already registered
  54. #define IDSERR_NOT_MCA 0x0027 //not a MCA system
  55. #define IDSERR_ABORT 0x0028 //detection is aborted
  56. #define IDSERR_GETFUNCADDR 0x0029 //fail to get function entry
  57. #define IDSERR_HOOKINT86X 0x002a //fail to hook Int86x worker
  58. #define IDSERR_QUERYDOSDEV 0x002b //fail to query dos dev info.
  59. #define IDSERR_INF_RISKCAT 0x002c //invalid risk category
  60. #define IDSERR_NODOSDEV 0x002d //no such dos device
  61. #define IDSERR_IOMEM_NOTFOUND 0x002e //iomem block not found
  62. #define IDSERR_IRQDMA_NOTFOUND 0x002f //irqdma block not found
  63. #define IDSERR_OPENCRASHLOG 0x0030 //failed to open detect log
  64. #define IDSERR_NODOSTSR 0x0031 //no such dos TSR
  65. #define IDSERR_REGHW_DUP 0x0032 //duplicate hw registration
  66. #define IDSERR_CALLRMPROC 0x0033 //call real mode proc error
  67. #define IDSERR_NEEDREBOOT 0x0034 //need reboot after detection
  68. #define SDMERR_NONE IDSERR_NONE
  69. #define SDMERR_INVALID_PARAM (0x80000000 | IDSERR_INVALID_PARAM)
  70. #define SDMERR_OUTOFMEM (0x80000000 | IDSERR_OUTOFMEM)
  71. #define SDMERR_REG_ACCESS (0x80000000 | IDSERR_REG_ACCESS)
  72. #define SDMERR_SD_ALREADYOPEN (0x80000000 | IDSERR_SD_ALREADYOPEN)
  73. #define SDMERR_SD_NOTOPEN (0x80000000 | IDSERR_SD_NOTOPEN)
  74. #define SDMERR_HOOK_R0CODE (0x80000000 | IDSERR_HOOK_R0CODE)
  75. #define SDMERR_DUPINF (0x80000000 | IDSERR_DUPINF)
  76. #define SDMERR_OPENINF (0x80000000 | IDSERR_OPENINF)
  77. #define SDMERR_INF_LISTSECT (0x80000000 | IDSERR_INF_LISTSECT)
  78. #define SDMERR_INF_LISTLINE (0x80000000 | IDSERR_INF_LISTLINE)
  79. #define SDMERR_INF_MODSECT (0x80000000 | IDSERR_INF_MODSECT)
  80. #define SDMERR_INF_MODLINE (0x80000000 | IDSERR_INF_MODLINE)
  81. #define SDMERR_INF_MODNAME (0x80000000 | IDSERR_INF_MODNAME)
  82. #define SDMERR_INF_FUNCSECT (0x80000000 | IDSERR_INF_FUNCSECT)
  83. #define SDMERR_INF_FUNCLINE (0x80000000 | IDSERR_INF_FUNCLINE)
  84. #define SDMERR_LOADMOD (0x80000000 | IDSERR_LOADMOD)
  85. #define SDMERR_INF_CLASSNAME (0x80000000 | IDSERR_INF_CLASSNAME)
  86. #define SDMERR_INF_DANGERSECT (0x80000000 | IDSERR_INF_DANGERSECT)
  87. #define SDMERR_INF_DANGERLINE (0x80000000 | IDSERR_INF_DANGERLINE)
  88. #define SDMERR_INF_DANGERFORMAT (0x80000000 | IDSERR_INF_DANGERFORMAT)
  89. #define SDMERR_DANGER_INVALID (0x80000000 | IDSERR_DANGER_INVALID)
  90. #define SDMERR_IOMEM_INVALID (0x80000000 | IDSERR_IOMEM_INVALID)
  91. #define SDMERR_IOMEM_CONFLICT (0x80000000 | IDSERR_IOMEM_CONFLICT)
  92. #define SDMERR_IRQDMA_INVALID (0x80000000 | IDSERR_IRQDMA_INVALID)
  93. #define SDMERR_IRQDMA_CONFLICT (0x80000000 | IDSERR_IRQDMA_CONFLICT)
  94. #define SDMERR_INF_BUSTYPE (0x80000000 | IDSERR_INF_BUSTYPE)
  95. #define SDMERR_DETFUNC_DMSERR (0x80000000 | IDSERR_DETFUNC_DMSERR)
  96. #define SDMERR_DETFUNC_REGERR (0x80000000 | IDSERR_DETFUNC_REGERR)
  97. #define SDMERR_DETFUNC_ERROR (0x80000000 | IDSERR_DETFUNC_ERROR)
  98. #define SDMERR_GENINSTALL (0x80000000 | IDSERR_GENINSTALL)
  99. #define SDMERR_NOSUCH_DEV (0x80000000 | IDSERR_NOSUCH_DEV)
  100. #define SDMERR_BUFF_TOOSMALL (0x80000000 | IDSERR_BUFF_TOOSMALL)
  101. #define SDMERR_DEV_ALREADYREG (0x80000000 | IDSERR_DEV_ALREADYREG)
  102. #define SDMERR_NOT_EISA (0x80000000 | IDSERR_NOT_EISA)
  103. #define SDMERR_GETEISACONFIG (0x80000000 | IDSERR_GETEISACONFIG)
  104. #define SDMERR_INF_CLASS (0x80000000 | IDSERR_INF_CLASS)
  105. #define SDMERR_COPYLOGCONFIG (0x80000000 | IDSERR_COPYLOGCONFIG)
  106. #define SDMERR_DUPFUNC (0x80000000 | IDSERR_DUPFUNC)
  107. #define SDMERR_NOT_MCA (0x80000000 | IDSERR_NOT_MCA)
  108. #define SDMERR_ABORT (0x80000000 | IDSERR_ABORT)
  109. #define SDMERR_GETFUNCADDR (0x80000000 | IDSERR_GETFUNCADDR)
  110. #define SDMERR_HOOKINT86X (0x80000000 | IDSERR_HOOKINT86X)
  111. #define SDMERR_QUERYDOSDEV (0x80000000 | IDSERR_QUERYDOSDEV)
  112. #define SDMERR_INF_RISKCAT (0x80000000 | IDSERR_INF_RISKCAT)
  113. #define SDMERR_NODOSDEV (0x80000000 | IDSERR_NODOSDEV)
  114. #define SDMERR_IOMEM_NOTFOUND (0x80000000 | IDSERR_IOMEM_NOTFOUND)
  115. #define SDMERR_IRQDMA_NOTFOUND (0x80000000 | IDSERR_IRQDMA_NOTFOUND)
  116. #define SDMERR_OPENCRASHLOG (0x80000000 | IDSERR_OPENCRASHLOG)
  117. #define SDMERR_NODOSTSR (0x80000000 | IDSERR_NODOSTSR)
  118. #define SDMERR_REGHW_DUP (0x80000000 | IDSERR_REGHW_DUP)
  119. #define SDMERR_CALLRMPROC (0x80000000 | IDSERR_CALLRMPROC)
  120. #define SDMERR_NEEDREBOOT (0x80000000 | IDSERR_NEEDREBOOT)
  121. #endif //_INC_SDERROR