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.

103 lines
5.2 KiB

  1. /********************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright(c) Microsoft Corp., 1990-1993 **/
  4. /********************************************************************/
  5. /* :ts=4 */
  6. //** TDISTAT.H - TDI status code definitions.
  7. //
  8. // This file contains the TDI status code definitions.
  9. #ifndef NT
  10. #define TDI_SUCCESS 0 // Success
  11. #define TDI_NO_RESOURCES 1 // No resources.
  12. #define TDI_ADDR_IN_USE 2 // Address already in use.
  13. #define TDI_BAD_ADDR 3 // Address given is bad.
  14. #define TDI_NO_FREE_ADDR 4 // No addresses available.
  15. #define TDI_ADDR_INVALID 6 // Address object is invalid.
  16. #define TDI_ADDR_DELETED 7 // Address object was deleted.
  17. #define TDI_BUFFER_OVERFLOW 9 // Buffer overflowed.
  18. #define TDI_BAD_EVENT_TYPE 10 // Bad event type.
  19. #define TDI_BAD_OPTION 11 // Bad option or length.
  20. #define TDI_CONN_REFUSED 14 // Connection was refused.
  21. #define TDI_INVALID_CONNECTION 15 // Invalid connection.
  22. #define TDI_ALREADY_ASSOCIATED 16 // Connection already associated.
  23. #define TDI_NOT_ASSOCIATED 17 // Connection not associated.
  24. #define TDI_CONNECTION_ACTIVE 18 // Connection is still active.
  25. #define TDI_CONNECTION_ABORTED 19 // Connection was aborted.
  26. #define TDI_CONNECTION_RESET 20 // Connection was reset.
  27. #define TDI_TIMED_OUT 21 // Connection timed out.
  28. #define TDI_GRACEFUL_DISC 22 // Received a graceful disconnect.
  29. #define TDI_NOT_ACCEPTED 23 // Data not accepted.
  30. #define TDI_MORE_PROCESSING 24 // More processing required.
  31. #define TDI_INVALID_STATE 25 // TCB in an invalid state.
  32. #define TDI_INVALID_PARAMETER 26 // An invalid parameter.
  33. #define TDI_DEST_NET_UNREACH 27 // Destination net is unreachable.
  34. #define TDI_DEST_HOST_UNREACH 28 // Dest. host is unreachable.
  35. #define TDI_DEST_UNREACHABLE TDI_DEST_HOST_UNREACH
  36. #define TDI_DEST_PROT_UNREACH 29 // Destination protocol is
  37. // unreachable.
  38. #define TDI_DEST_PORT_UNREACH 30 // Dest. port is unreachable.
  39. #define TDI_INVALID_QUERY 31 // Invalid query type specified.
  40. #define TDI_REQ_ABORTED 32 // Request was aborted for some
  41. // reason.
  42. #define TDI_BUFFER_TOO_SMALL 33 // Buffer was too small.
  43. #define TDI_CANCELLED 34 // The request was cancelled.
  44. #define TDI_BUFFER_TOO_BIG 35 // Send buffer was too big.
  45. #define TDI_INVALID_REQUEST 0xfe // Invalid request.
  46. #define TDI_PENDING 0xff // Pending
  47. #define TDI_LINK_BUSY 37 // IrLMP exclusive mode support
  48. #define TDI_NET_DOWN 38
  49. #define TDI_IN_PROGRESS 39
  50. #else
  51. //
  52. // Map to NT STATUS codes.
  53. //
  54. #define TDI_SUCCESS STATUS_SUCCESS
  55. #define TDI_NO_RESOURCES STATUS_INSUFFICIENT_RESOURCES
  56. #define TDI_ADDR_IN_USE STATUS_ADDRESS_ALREADY_EXISTS
  57. #define TDI_BAD_ADDR STATUS_INVALID_ADDRESS_COMPONENT
  58. #define TDI_NO_FREE_ADDR STATUS_TOO_MANY_ADDRESSES
  59. #define TDI_ADDR_INVALID STATUS_INVALID_ADDRESS
  60. #define TDI_ADDR_DELETED STATUS_ADDRESS_CLOSED
  61. #define TDI_BUFFER_OVERFLOW STATUS_BUFFER_OVERFLOW
  62. #define TDI_BAD_EVENT_TYPE STATUS_INVALID_PARAMETER
  63. #define TDI_BAD_OPTION STATUS_INVALID_PARAMETER
  64. #define TDI_CONN_REFUSED STATUS_CONNECTION_REFUSED
  65. #define TDI_INVALID_CONNECTION STATUS_CONNECTION_INVALID
  66. #define TDI_ALREADY_ASSOCIATED STATUS_ADDRESS_ALREADY_ASSOCIATED
  67. #define TDI_NOT_ASSOCIATED STATUS_ADDRESS_NOT_ASSOCIATED
  68. #define TDI_CONNECTION_ACTIVE STATUS_CONNECTION_ACTIVE
  69. #define TDI_CONNECTION_ABORTED STATUS_CONNECTION_ABORTED
  70. #define TDI_CONNECTION_RESET STATUS_CONNECTION_RESET
  71. #define TDI_TIMED_OUT STATUS_IO_TIMEOUT
  72. #define TDI_GRACEFUL_DISC STATUS_GRACEFUL_DISCONNECT
  73. #define TDI_NOT_ACCEPTED STATUS_DATA_NOT_ACCEPTED
  74. #define TDI_MORE_PROCESSING STATUS_MORE_PROCESSING_REQUIRED
  75. #define TDI_INVALID_STATE STATUS_INVALID_DEVICE_STATE
  76. #define TDI_INVALID_PARAMETER STATUS_INVALID_PARAMETER
  77. #define TDI_DEST_NET_UNREACH STATUS_NETWORK_UNREACHABLE
  78. #define TDI_DEST_HOST_UNREACH STATUS_HOST_UNREACHABLE
  79. #define TDI_DEST_UNREACHABLE TDI_DEST_HOST_UNREACH
  80. #define TDI_DEST_PROT_UNREACH STATUS_PROTOCOL_UNREACHABLE
  81. #define TDI_DEST_PORT_UNREACH STATUS_PORT_UNREACHABLE
  82. #define TDI_INVALID_QUERY STATUS_INVALID_DEVICE_REQUEST
  83. #define TDI_REQ_ABORTED STATUS_REQUEST_ABORTED
  84. #define TDI_BUFFER_TOO_SMALL STATUS_BUFFER_TOO_SMALL
  85. #define TDI_CANCELLED STATUS_CANCELLED
  86. #define TDI_BUFFER_TOO_BIG STATUS_INVALID_BUFFER_SIZE
  87. #define TDI_INVALID_REQUEST STATUS_INVALID_DEVICE_REQUEST
  88. #define TDI_PENDING STATUS_PENDING
  89. #endif // NT
  90. #define TDI_OPTION_EOL 0
  91. #define TDI_ADDRESS_OPTION_REUSE 1
  92. #define TDI_ADDRESS_OPTION_DHCP 2
  93.