pal_error.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. //
  2. // Copyright (c) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE file in the project root for full license information.
  4. //
  5. /*++
  6. --*/
  7. #ifndef __PAL_ERROR_H__
  8. #define __PAL_ERROR_H__
  9. /******************* error codes *****************************************/
  10. /* STARTERRORCODES - do not remove this marker, it is consumed by the palsatellite tool */
  11. #define ERROR_SUCCESS 0L
  12. #define ERROR_FILE_NOT_FOUND 2L
  13. #define ERROR_PATH_NOT_FOUND 3L
  14. #define ERROR_ACCESS_DENIED 5L
  15. #define ERROR_INVALID_HANDLE 6L
  16. #define ERROR_NOT_ENOUGH_MEMORY 8L
  17. #define ERROR_BUFFER_OVERFLOW 111L
  18. #define ERROR_INVALID_ACCESS 12L
  19. #define ERROR_INVALID_DATA 13L
  20. #define ERROR_OUTOFMEMORY 14L
  21. #define ERROR_BAD_COMMAND 22L
  22. #define ERROR_BAD_LENGTH 24L
  23. #define ERROR_WRITE_FAULT 29L
  24. #define ERROR_GEN_FAILURE 31L
  25. #define ERROR_SHARING_VIOLATION 32L
  26. #define ERROR_LOCK_VIOLATION 33L
  27. #define ERROR_HANDLE_EOF 38L
  28. #define ERROR_NOT_SUPPORTED 50L
  29. #define ERROR_DEV_NOT_EXIST 55L
  30. #define ERROR_BAD_NET_NAME 67L
  31. #define ERROR_FILE_EXISTS 80L
  32. #define ERROR_INVALID_PARAMETER 87L
  33. #define ERROR_OPEN_FAILED 110L
  34. #define ERROR_DISK_FULL 112L
  35. #define ERROR_CALL_NOT_IMPLEMENTED 120L
  36. #define ERROR_INSUFFICIENT_BUFFER 122L
  37. #define ERROR_INVALID_NAME 123L
  38. #define ERROR_MOD_NOT_FOUND 126L
  39. #define ERROR_PROC_NOT_FOUND 127L
  40. #define ERROR_NEGATIVE_SEEK 131L
  41. #define ERROR_DIR_NOT_EMPTY 145L
  42. #define ERROR_NOT_LOCKED 158L
  43. #define ERROR_BAD_PATHNAME 161L
  44. #define ERROR_BUSY 170L
  45. #define ERROR_ALREADY_EXISTS 183L
  46. #define ERROR_EXE_MARKED_INVALID 192L
  47. #define ERROR_ENVVAR_NOT_FOUND 203L
  48. #define ERROR_FILENAME_EXCED_RANGE 206L
  49. #define ERROR_DIRECTORY 267L
  50. #define ERROR_NOT_OWNER 288L
  51. #define ERROR_PARTIAL_COPY 299L
  52. #define ERROR_INVALID_ADDRESS 487L
  53. #define ERROR_ARITHMETIC_OVERFLOW 534L
  54. #define ERROR_NOACCESS 998L
  55. #define ERROR_STACK_OVERFLOW 1001L
  56. #define ERROR_FILE_INVALID 1006L
  57. #define ERROR_PROCESS_ABORTED 1067L
  58. #define ERROR_INVALID_FLAGS 1004L
  59. #define ERROR_NO_UNICODE_TRANSLATION 1113L
  60. #define ERROR_DLL_INIT_FAILED 1114L
  61. #define ERROR_TOO_MANY_LINKS 1142L
  62. #define ERROR_NOT_FOUND 1168L
  63. #define ERROR_INTERNAL_ERROR 1359L
  64. #define ERROR_NO_SYSTEM_RESOURCES 1450L
  65. #define ERROR_COMMITMENT_LIMIT 1455L
  66. #define ERROR_UNSUPPORTED_TYPE 1630L
  67. #define RPC_S_INVALID_VERS_OPTION 1756L
  68. #define ERROR_RESOURCE_DATA_NOT_FOUND 1812L
  69. #define ERROR_RESOURCE_LANG_NOT_FOUND 1815L
  70. #define ERROR_TAG_NOT_PRESENT 2013L
  71. #define CRYPT_E_NO_MATCH 0x80092009
  72. /* ENDERRORCODES - do not remove this marker, it is consumed by the palsatellite tool */
  73. /******************* error code aliases **************************************/
  74. #define NOERROR 0
  75. #define NO_ERROR 0L
  76. #endif // __PAL_ERROR_H__