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.

179 lines
7.6 KiB

  1. /*
  2. * $Header: V:/Flite/archives/TrueFFS5/Src/FLSTATUS.H_V 1.7 Feb 19 2002 21:00:06 oris $
  3. * $Log: V:/Flite/archives/TrueFFS5/Src/FLSTATUS.H_V $
  4. *
  5. * Rev 1.7 Feb 19 2002 21:00:06 oris
  6. * Renamed flTimeOut status with flLeftForCompetability status.
  7. *
  8. * Rev 1.6 Jan 29 2002 20:06:34 oris
  9. * Changed spelling mistake - flMultiDocContrediction to flMultiDocContradiction.
  10. *
  11. * Rev 1.5 Jan 17 2002 23:02:32 oris
  12. * Added new states : flCanNotFold / flBadIPLBlock / flIOCommandBlocked.
  13. *
  14. * Rev 1.4 Sep 15 2001 23:46:32 oris
  15. * Added flCanNotFold status
  16. *
  17. * Rev 1.3 May 16 2001 21:19:34 oris
  18. * Added flMultiDocContrediction status code.
  19. *
  20. * Rev 1.2 May 02 2001 06:40:18 oris
  21. * flInterleaveError was misspelled.
  22. *
  23. * Rev 1.1 Apr 01 2001 07:58:04 oris
  24. * copywrite notice.
  25. * Added new status codes:
  26. * flBadDownload = 111,
  27. * flBadBBT = 112,
  28. * flInterlreavError = 113,
  29. * flWrongKey = 114,
  30. * flHWProtection = 115,
  31. * flTimeOut = 116
  32. * Changed flUnchangableProection to flUnchangeableProtection = 110,
  33. *
  34. * Rev 1.0 Feb 04 2001 11:56:04 oris
  35. * Initial revision.
  36. *
  37. */
  38. /***********************************************************************************/
  39. /* M-Systems Confidential */
  40. /* Copyright (C) M-Systems Flash Disk Pioneers Ltd. 1995-2001 */
  41. /* All Rights Reserved */
  42. /***********************************************************************************/
  43. /* NOTICE OF M-SYSTEMS OEM */
  44. /* SOFTWARE LICENSE AGREEMENT */
  45. /* */
  46. /* THE USE OF THIS SOFTWARE IS GOVERNED BY A SEPARATE LICENSE */
  47. /* AGREEMENT BETWEEN THE OEM AND M-SYSTEMS. REFER TO THAT AGREEMENT */
  48. /* FOR THE SPECIFIC TERMS AND CONDITIONS OF USE, */
  49. /* OR CONTACT M-SYSTEMS FOR LICENSE ASSISTANCE: */
  50. /* E-MAIL = [email protected] */
  51. /***********************************************************************************/
  52. #ifndef FLSTATUS_H
  53. #define FLSTATUS_H
  54. #ifndef IFLITE_ERROR_CODES
  55. typedef enum { /* Status code for operation.
  56. A zero value indicates success,
  57. other codes are the extended
  58. DOS codes. */
  59. flOK = 0,
  60. flBadFunction = 1,
  61. flFileNotFound = 2,
  62. flPathNotFound = 3,
  63. flTooManyOpenFiles = 4,
  64. flNoWriteAccess = 5,
  65. flBadFileHandle = 6,
  66. flDriveNotAvailable = 9,
  67. flNonFATformat = 10,
  68. flFormatNotSupported = 11,
  69. flNoMoreFiles = 18,
  70. flWriteProtect = 19,
  71. flBadDriveHandle = 20,
  72. flDriveNotReady = 21,
  73. flUnknownCmd = 22,
  74. flBadFormat = 23,
  75. flBadLength = 24,
  76. flDataError = 25,
  77. flUnknownMedia = 26,
  78. flSectorNotFound = 27,
  79. flOutOfPaper = 28,
  80. flWriteFault = 29,
  81. flReadFault = 30,
  82. flGeneralFailure = 31,
  83. flDiskChange = 34,
  84. flVppFailure = 50,
  85. flBadParameter = 51,
  86. flNoSpaceInVolume = 52,
  87. flInvalidFATchain = 53,
  88. flRootDirectoryFull = 54,
  89. flNotMounted = 55,
  90. flPathIsRootDirectory = 56,
  91. flNotADirectory = 57,
  92. flDirectoryNotEmpty = 58,
  93. flFileIsADirectory = 59,
  94. flAdapterNotFound = 60,
  95. flFormattingError = 62,
  96. flNotEnoughMemory = 63,
  97. flVolumeTooSmall = 64,
  98. flBufferingError = 65,
  99. flFileAlreadyExists = 80,
  100. flIncomplete = 100,
  101. flTimedOut = 101,
  102. flTooManyComponents = 102,
  103. flTooManyDrives = 103,
  104. flTooManyBinaryPartitions = 104,
  105. flPartitionNotFound = 105,
  106. flFeatureNotSupported = 106,
  107. flWrongVersion = 107,
  108. flTooManyBadBlocks = 108,
  109. flNotProtected = 109,
  110. flUnchangeableProtection = 110,
  111. flBadDownload = 111,
  112. flBadBBT = 112,
  113. flInterleaveError = 113,
  114. flWrongKey = 114,
  115. flHWProtection = 115,
  116. flLeftForCompetability = 116,
  117. flMultiDocContradiction = 117,
  118. flCanNotFold = 118,
  119. flBadIPLBlock = 119,
  120. flIOCommandBlocked = 120
  121. #else
  122. #include "type.h"
  123. typedef enum { /* Status code for operation.
  124. A zero value indicates success,
  125. other codes are the extended
  126. DOS codes. */
  127. flOK = ERR_NONE,
  128. flBadFunction = ERR_SW_HW,
  129. flFileNotFound = ERR_NOTEXISTS,
  130. flPathNotFound = ERR_NOTEXISTS,
  131. flTooManyOpenFiles = ERR_MAX_FILES,
  132. flNoWriteAccess = ERR_WRITE,
  133. flBadFileHandle = ERR_NOTOPEN,
  134. flDriveNotAvailable = ERR_SW_HW,
  135. flNonFATformat = ERR_PARTITION,
  136. flFormatNotSupported = ERR_PARTITION,
  137. flNoMoreFiles = ERR_NOTEXISTS,
  138. flWriteProtect = ERR_WRITE,
  139. flBadDriveHandle = ERR_SW_HW,
  140. flDriveNotReady = ERR_PARTITION,
  141. flUnknownCmd = ERR_PARAM,
  142. flBadFormat = ERR_PARTITION,
  143. flBadLength = ERR_SW_HW,
  144. flDataError = ERR_READ,
  145. flUnknownMedia = ERR_PARTITION,
  146. flSectorNotFound = ERR_READ,
  147. flOutOfPaper = ERR_SW_HW,
  148. flWriteFault = ERR_WRITE,
  149. flReadFault = ERR_READ,
  150. flGeneralFailure = ERR_SW_HW,
  151. flDiskChange = ERR_PARTITION,
  152. flVppFailure = ERR_WRITE,
  153. flBadParameter = ERR_PARAM,
  154. flNoSpaceInVolume = ERR_SPACE,
  155. flInvalidFATchain = ERR_PARTITION,
  156. flRootDirectoryFull = ERR_DIRECTORY,
  157. flNotMounted = ERR_PARTITION,
  158. flPathIsRootDirectory = ERR_DIRECTORY,
  159. flNotADirectory = ERR_DIRECTORY,
  160. flDirectoryNotEmpty = ERR_NOT_EMPTY,
  161. flFileIsADirectory = ERR_DIRECTORY,
  162. flAdapterNotFound = ERR_DETECT,
  163. flFormattingError = ERR_FORMAT,
  164. flNotEnoughMemory = ERR_SW_HW,
  165. flVolumeTooSmall = ERR_FORMAT,
  166. flBufferingError = ERR_SW_HW,
  167. flFileAlreadyExists = ERR_EXISTS,
  168. flIncomplete = ERR_DETECT,
  169. flTimedOut = ERR_SW_HW,
  170. flTooManyComponents = ERR_PARAM
  171. #endif
  172. } FLStatus;
  173. #endif /* FLSTATUS_H */