Leaked source code of windows server 2003
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.

79 lines
3.0 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. // This one is that client has FIPS set but server doesn't know FIPS
  40. #define TS_ERRINFO_SERVER_DENIED_CONNECTION_FIPS 0x00000008
  41. //
  42. // Protocol independent licensing codes
  43. //
  44. #define TS_ERRINFO_LICENSE_INTERNAL 0x0000100
  45. #define TS_ERRINFO_LICENSE_NO_LICENSE_SERVER 0x0000101
  46. #define TS_ERRINFO_LICENSE_NO_LICENSE 0x0000102
  47. #define TS_ERRINFO_LICENSE_BAD_CLIENT_MSG 0x0000103
  48. #define TS_ERRINFO_LICENSE_HWID_DOESNT_MATCH_LICENSE 0x0000104
  49. #define TS_ERRINFO_LICENSE_BAD_CLIENT_LICENSE 0x0000105
  50. #define TS_ERRINFO_LICENSE_CANT_FINISH_PROTOCOL 0x0000106
  51. #define TS_ERRINFO_LICENSE_CLIENT_ENDED_PROTOCOL 0x0000107
  52. #define TS_ERRINFO_LICENSE_BAD_CLIENT_ENCRYPTION 0x0000108
  53. #define TS_ERRINFO_LICENSE_CANT_UPGRADE_LICENSE 0x0000109
  54. #define TS_ERRINFO_LICENSE_NO_REMOTE_CONNECTIONS 0x000010A
  55. //
  56. // Salem specific error code
  57. //
  58. #define TS_ERRINFO_SALEM_INVALIDHELPSESSION 0x0000200
  59. //
  60. // Protocol specific codes must be passed in the
  61. // range TS_ERRINFO_PROTOCOL_BASE to TS_ERRINFO_PROTOCOL_END
  62. //
  63. #define TS_ERRINFO_PROTOCOL_BASE 0x0001000
  64. #define TS_ERRINFO_PROTOCOL_END 0x0007FFF
  65. #ifdef __cplusplus
  66. }
  67. #endif
  68. #endif /* !_INC_TSERRSH */