Source code of Windows XP (NT5)
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.

117 lines
4.8 KiB

  1. //-------------------------------------------------------------------------
  2. //
  3. // File: dfshr.h
  4. //
  5. // Contents: This file has all the user mode SCODES to be used in HResults.
  6. //
  7. // History: 05-11-93 SudK Created.
  8. //
  9. //-------------------------------------------------------------------------
  10. #if 0
  11. #include <scode.h>
  12. #ifndef __DFSHR_H__
  13. #define __DFSHR_H__
  14. //
  15. // Macros to create DFS NTSTATUS values at various severity levels
  16. //
  17. #ifndef FACILITY_DFS
  18. //
  19. // The following are taken from the (obsolescent) scode.h.
  20. //
  21. #define FACILITY_CAIRO_BASE 0x100
  22. #define FACILITY_DFS (FACILITY_CAIRO_BASE + 25)
  23. #endif // FACILITY_DFS
  24. #define MAKE_DFS_STATUS(s,e) (((s)<<30) | (FACILITY_DFS<<16) | (e))
  25. #define MAKE_DFS_S_STATUS(e) MAKE_DFS_STATUS(STATUS_SEVERITY_SUCCESS, e)
  26. #define MAKE_DFS_E_STATUS(e) MAKE_DFS_STATUS(STATUS_SEVERITY_ERROR, e)
  27. #define MAKE_DFS_W_STATUS(e) MAKE_DFS_STATUS(STATUS_SEVERITY_WARNING, e)
  28. #define MAKE_DFS_I_STATUS(e) MAKE_DFS_STATUS(STATUS_SEVERITY_INFORMAITON, e)
  29. //
  30. // Below are definitions of SCODEs returned by DFS user level
  31. // API components.
  32. //
  33. #define MAKE_DFS_SCODE(s,e) HR_MAKE_SCODE((s), (e))
  34. #define MAKE_DFS_S_SCODE(e) MAKE_DFS_SCODE(SEVERITY_SUCCESS, e)
  35. #define MAKE_DFS_E_SCODE(e) MAKE_DFS_SCODE(SEVERITY_ERROR, e)
  36. //
  37. // Add SeverityLevel ERROR SCODEs here.
  38. // Choose sequence numbers from the bottom.
  39. //
  40. #define DFS_E_VOLUME_OBJECT_CORRUPT MAKE_DFS_E_SCODE(1)
  41. #define DFS_E_SERVICE_ALREADY_EXISTS MAKE_DFS_E_SCODE(2)
  42. #define DFS_E_SERVICE_OBJECT_CORRUPT MAKE_DFS_E_SCODE(3)
  43. #define DFS_E_INCONSISTENT MAKE_DFS_E_SCODE(4)
  44. #define DFS_E_INVALID_ARGUMENT MAKE_DFS_E_SCODE(5)
  45. #define DFS_E_INVALID_STORAGE_ID MAKE_DFS_E_SCODE(6)
  46. #define DFS_E_INVALID_SERVICE_NAME MAKE_DFS_E_SCODE(7)
  47. #define DFS_E_NO_SUCH_SERVICE_NAME MAKE_DFS_E_SCODE(8)
  48. #define DFS_E_NOT_CHILD_VOLUME MAKE_DFS_E_SCODE(9)
  49. #define DFS_E_SERVICE_NOT_COOPERATING MAKE_DFS_E_SCODE(10)
  50. #define DFS_E_BAD_VOLUME_OBJECT_NAME MAKE_DFS_E_SCODE(11)
  51. #define DFS_E_BAD_ENTRY_PATH MAKE_DFS_E_SCODE(12)
  52. #define DFS_E_NOTYET_INITIALISED MAKE_DFS_E_SCODE(13)
  53. #define DFS_E_SERVICE_NOT_FOUND MAKE_DFS_E_SCODE(14)
  54. #define DFS_E_VOLUME_OBJECT_OFFLINE MAKE_DFS_E_SCODE(15)
  55. #define DFS_E_BAD_COMMAND MAKE_DFS_E_SCODE(16)
  56. #define DFS_E_NOT_SUPPORTED MAKE_DFS_E_SCODE(17)
  57. #define DFS_E_LEAF_VOLUME MAKE_DFS_E_SCODE(18)
  58. #define DFS_E_MORE_THAN_ONE_SERVICE_EXISTS MAKE_DFS_E_SCODE(19)
  59. #define DFS_E_CANT_CREATE_EXITPOINT MAKE_DFS_E_SCODE(20)
  60. #define DFS_E_UNKNOWN MAKE_DFS_E_SCODE(21)
  61. #define DFS_E_INVALID_SERVICE_TYPE MAKE_DFS_E_SCODE(22)
  62. #define DFS_E_VOLUME_OBJECT_UNAVAILABLE MAKE_DFS_E_SCODE(23)
  63. #define DFS_E_INVALID_VOLUME_TYPE MAKE_DFS_E_SCODE(24)
  64. #define DFS_E_NOTYET_IMPLEMENTED MAKE_DFS_E_SCODE(25)
  65. #define DFS_E_ONE_SERVICE_ONLY_ALLOWED MAKE_DFS_E_SCODE(27)
  66. #define DFS_E_NOT_AGGREGATABLE MAKE_DFS_E_SCODE(28)
  67. #define DFS_E_NOT_DC MAKE_DFS_E_SCODE(29)
  68. #define DFS_E_NO_DC_IN_DOMAIN MAKE_DFS_E_SCODE(30)
  69. //
  70. // The SUCCESS SCODEs that DFS can return. Choose sequence numbers in order.
  71. //
  72. #define DFS_S_SUCCESS MAKE_DFS_S_SCODE(100)
  73. #define DFS_S_INCONSISTENT MAKE_DFS_S_SCODE(101)
  74. //
  75. // The following error codes are there for Compatibility purposes alone.
  76. // The should go away and be redefined with new DFS error code names.
  77. //
  78. #define INVALID_PARTITION_NAME MAKE_DFS_E_SCODE(51)
  79. #define CONTAINER_INTERFACE_NOT_SUPPORTED MAKE_DFS_E_SCODE(52)
  80. #define INSUFFICIENT_MEMORY MAKE_DFS_E_SCODE(53)
  81. #define COULDNT_SET_PROPERTY MAKE_DFS_E_SCODE(54)
  82. #define CANNOT_DELETE_PARTITION MAKE_DFS_E_SCODE(55)
  83. #define INVALID_ENTRY_PATH MAKE_DFS_E_SCODE(56)
  84. #define INVALID_SERVICE_NAME MAKE_DFS_E_SCODE(57)
  85. #define INVALID_PARTITION_INFO MAKE_DFS_E_SCODE(58)
  86. #define DFSM_STATUS_SERVICE_ENTRY_NOT_FOUND MAKE_DFS_E_SCODE(59)
  87. #define DFSM_STATUS_NO_MORE_SERVICES MAKE_DFS_E_SCODE(60)
  88. #define DFSM_STATUS_BAD_PROPERTY_READ MAKE_DFS_E_SCODE(61)
  89. #define DFSM_STATUS_NO_DEVICE_OBJECT MAKE_DFS_E_SCODE(62)
  90. #define DFSM_STATUS_BAD_COMMAND MAKE_DFS_E_SCODE(63)
  91. #define DFSM_STATUS_NOT_SUPPORTED MAKE_DFS_E_SCODE(64)
  92. #define DFS_E_NOSUCH_LOCAL_VOLUME MAKE_DFS_E_STATUS(65)
  93. #define DFS_E_BAD_EXIT_POINT MAKE_DFS_E_STATUS(66)
  94. #endif // __DFSHR_H__
  95. #endif // #if 0