DosError.cs 5.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // This code is derived from jcifs smb client library <jcifs at samba dot org>
  2. // Ported by J. Arturo <webmaster at komodosoft dot net>
  3. //
  4. // This library is free software; you can redistribute it and/or
  5. // modify it under the terms of the GNU Lesser General Public
  6. // License as published by the Free Software Foundation; either
  7. // version 2.1 of the License, or (at your option) any later version.
  8. //
  9. // This library is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. // Lesser General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU Lesser General Public
  15. // License along with this library; if not, write to the Free Software
  16. // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. namespace SharpCifs.Smb
  18. {
  19. public static class DosError
  20. {
  21. public static int[][] DosErrorCodes = { new[] { unchecked(0x00000000), unchecked(0x00000000) }, new[] { unchecked(0x00010001), unchecked((int)(0xc0000002)) }, new[] { unchecked(0x00010002), unchecked(
  22. (int)(0xc0000002)) }, new[] { unchecked(0x00020001), unchecked((int)(
  23. 0xc000000f)) }, new[] { unchecked(0x00020002), unchecked((int)(0xc000006a
  24. )) }, new[] { unchecked(0x00030001), unchecked((int)(0xc000003a)) },
  25. new[] { unchecked(0x00030002), unchecked((int)(0xc00000cb)) }, new[] { unchecked(0x00040002), unchecked((int)(0xc00000ca)) }, new[] { unchecked(
  26. 0x00050001), unchecked((int)(0xc0000022)) }, new[] { unchecked(0x00050002), unchecked((int)(0xc000000d)) }, new[] { unchecked(0x00060001), unchecked((int)(0xc0000008)) }, new[] { unchecked(0x00060002), unchecked(
  27. (int)(0xc00000cc)) }, new[] { unchecked(0x00080001), unchecked((int)(
  28. 0xc000009a)) }, new[] { unchecked(0x00130003), unchecked((int)(0xc00000a2
  29. )) }, new[] { unchecked(0x00150003), unchecked((int)(0xc0000013)) },
  30. new[] { unchecked(0x001f0001), unchecked((int)(0xc0000001)) }, new[] { unchecked(0x001f0003), unchecked((int)(0xc0000001)) }, new[] { unchecked(
  31. 0x00200001), unchecked((int)(0xc0000043)) }, new[] { unchecked(0x00200003), unchecked((int)(0xc0000043)) }, new[] { unchecked(0x00210003), unchecked((int)(0xc0000054)) }, new[] { unchecked(0x00270003), unchecked(
  32. (int)(0xc000007f)) }, new[] { unchecked(0x00340001), unchecked((int)(
  33. 0xC00000bd)) }, new[] { unchecked(0x00430001), unchecked((int)(0xc00000cc
  34. )) }, new[] { unchecked(0x00470001), unchecked((int)(0xC00000d0)) },
  35. new[] { unchecked(0x00500001), unchecked((int)(0xc0000035)) }, new[] { unchecked(0x00570001), unchecked((int)(0xc0000003)) }, new[] { unchecked(
  36. 0x005a0002), unchecked((int)(0xc00000ce)) }, new[] { unchecked(0x005b0002), unchecked((int)(0xc000000d)) }, new[] { unchecked(0x006d0001), unchecked((int)(0xC000014b)) }, new[] { unchecked(0x007b0001), unchecked(
  37. (int)(0xc0000033)) }, new[] { unchecked(0x00910001), unchecked((int)(
  38. 0xC0000101)) }, new[] { unchecked(0x00b70001), unchecked((int)(0xc0000035
  39. )) }, new[] { unchecked(0x00e70001), unchecked((int)(0xc00000ab)) },
  40. new[] { unchecked(0x00e80001), unchecked((int)(0xc00000b1)) }, new[] { unchecked(0x00e90001), unchecked((int)(0xc00000b0)) }, new[] { unchecked(
  41. 0x00ea0001), unchecked((int)(0xc0000016)) }, new[] { unchecked(0x08bf0002), unchecked((int)(0xC0000193)) }, new[] { unchecked(0x08c00002), unchecked((int)(0xC0000070)) }, new[] { unchecked(0x08c10002), unchecked(
  42. (int)(0xC000006f)) }, new[] { unchecked(0x08c20002), unchecked((int)(
  43. 0xC0000071)) } };
  44. public static string[] DosErrorMessages = { "The operation completed successfully."
  45. , "Incorrect function.", "Incorrect function.", "The system cannot find the file specified."
  46. , "Bad password.", "The system cannot find the path specified.", "reserved", "The client does not have the necessary access rights to perform the requested function."
  47. , "Access is denied.", "The TID specified was invalid.", "The handle is invalid."
  48. , "The network name cannot be found.", "Not enough storage is available to process this command."
  49. , "The media is write protected.", "The device is not ready.", "A device attached to the system is not functioning."
  50. , "A device attached to the system is not functioning.", "The process cannot access the file because it is being used by another process."
  51. , "The process cannot access the file because it is being used by another process."
  52. , "The process cannot access the file because another process has locked a portion of the file."
  53. , "The disk is full.", "A duplicate name exists on the network.", "The network name cannot be found."
  54. , "ERRnomoreconn.", "The file exists.", "The parameter is incorrect.", "Too many Uids active on this session."
  55. , "The Uid is not known as a valid user identifier on this session.", "The pipe has been ended."
  56. , "The filename, directory name, or volume label syntax is incorrect.", "The directory is not empty."
  57. , "Cannot create a file when that file already exists.", "All pipe instances are busy."
  58. , "The pipe is being closed.", "No process is on the other end of the pipe.", "More data is available."
  59. , "This user account has expired.", "The user is not allowed to log on from this workstation."
  60. , "The user is not allowed to log on at this time.", "The password of this user has expired."
  61. };
  62. }
  63. }