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.

77 lines
2.8 KiB

  1. /***************************************************************************
  2. *
  3. * TSERRS.H
  4. *
  5. * This module defines error codes passed from the server to the client
  6. * via TS_SET_ERROR_INFO_PDU (for RDP)
  7. *
  8. * Copyright Microsoft Corporation, 2000
  9. *
  10. *
  11. ****************************************************************************/
  12. #ifndef _INC_TSERRSH
  13. #define _INC_TSERRSH
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. /****************************************************************************/
  18. /* Error info values passed through the IOCTL_TSHARE_SET_ERROR_INFO IOCTL */
  19. /* down to the protocol drivers and then onto the client (for disconnect */
  20. /* reason reporting */
  21. /****************************************************************************/
  22. //
  23. // Protocol independent codes
  24. //
  25. #define TS_ERRINFO_NOERROR 0x00000000
  26. #define TS_ERRINFO_RPC_INITIATED_DISCONNECT 0x00000001
  27. #define TS_ERRINFO_RPC_INITIATED_LOGOFF 0x00000002
  28. #define TS_ERRINFO_IDLE_TIMEOUT 0x00000003
  29. #define TS_ERRINFO_LOGON_TIMEOUT 0x00000004
  30. #define TS_ERRINFO_DISCONNECTED_BY_OTHERCONNECTION 0x00000005
  31. #define TS_ERRINFO_OUT_OF_MEMORY 0x00000006
  32. //
  33. // Error happens when we get disconnected early in the connection sequence
  34. // normal causes are (in priority)
  35. // 1) TS not enabled / policy limiting new connections
  36. // 2) Network error occured at early stage in connection
  37. //
  38. #define TS_ERRINFO_SERVER_DENIED_CONNECTION 0x00000007
  39. //
  40. // Protocol independent licensing codes
  41. //
  42. #define TS_ERRINFO_LICENSE_INTERNAL 0x0000100
  43. #define TS_ERRINFO_LICENSE_NO_LICENSE_SERVER 0x0000101
  44. #define TS_ERRINFO_LICENSE_NO_LICENSE 0x0000102
  45. #define TS_ERRINFO_LICENSE_BAD_CLIENT_MSG 0x0000103
  46. #define TS_ERRINFO_LICENSE_HWID_DOESNT_MATCH_LICENSE 0x0000104
  47. #define TS_ERRINFO_LICENSE_BAD_CLIENT_LICENSE 0x0000105
  48. #define TS_ERRINFO_LICENSE_CANT_FINISH_PROTOCOL 0x0000106
  49. #define TS_ERRINFO_LICENSE_CLIENT_ENDED_PROTOCOL 0x0000107
  50. #define TS_ERRINFO_LICENSE_BAD_CLIENT_ENCRYPTION 0x0000108
  51. #define TS_ERRINFO_LICENSE_CANT_UPGRADE_LICENSE 0x0000109
  52. #define TS_ERRINFO_LICENSE_NO_REMOTE_CONNECTIONS 0x000010A
  53. //
  54. // Salem specific error code
  55. //
  56. #define TS_ERRINFO_SALEM_INVALIDHELPSESSION 0x0000200
  57. //
  58. // Protocol specific codes must be passed in the
  59. // range TS_ERRINFO_PROTOCOL_BASE to TS_ERRINFO_PROTOCOL_END
  60. //
  61. #define TS_ERRINFO_PROTOCOL_BASE 0x0001000
  62. #define TS_ERRINFO_PROTOCOL_END 0x0007FFF
  63. #ifdef __cplusplus
  64. }
  65. #endif
  66. #endif /* !_INC_TSERRSH */