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.

287 lines
11 KiB

  1. /****************************************************************************/
  2. // logerr.h
  3. //
  4. // Error logging constants and descriptions.
  5. //
  6. // Copyright (C) 1997-2000 Microsoft Corporation
  7. /****************************************************************************/
  8. // Specific components are declared here divided into ranges in the unsigned
  9. // space. Note that the ordering here is important since we use these ranges
  10. // to determine a facility name in MCSProtocolErrorEvent().
  11. #define Log_Null_Base 0
  12. #define Log_X224_Base 1
  13. #define Log_MCS_Base 100
  14. #define Log_RDP_Base 200
  15. #define Log_RDP_ENC_Base 400
  16. /*
  17. * Null
  18. */
  19. // "Null event log error"
  20. #define Log_Null Log_Null_Base
  21. /*
  22. * X.224
  23. */
  24. // "Overall X.224 Disconnect Request header length given in a "
  25. // "packet was not 11 as expected, or the Length Indicator was not 6."
  26. #define Log_X224_DisconnectHeaderLenNotRequiredSize Log_X224_Base
  27. // "An X.224 Disconnect Request was received without first receving an X.224 "
  28. // "connect"
  29. #define Log_X224_DisconnectWithoutConnection (Log_X224_Base + 2)
  30. // "An X.224 packet was received with the wrong X.224 version prefix "
  31. // "(expected 0x03 0x00)."
  32. #define Log_X224_RFC1006HeaderVersionNotCorrect (Log_X224_Base + 3)
  33. // "An X.224 Data packet was received before the connectioon sequence was "
  34. // "completed."
  35. #define Log_X224_ReceivedDataBeforeConnected (Log_X224_Base + 4)
  36. // "An X.224 packet was received with a packet length indicator less "
  37. // "than the minimum for its headers."
  38. #define Log_X224_PacketLengthLessThanHeader (Log_X224_Base + 5)
  39. // "An X.224 Data packet was received whose Length Indicator was not 2 as "
  40. // "expected."
  41. #define Log_X224_DataLenIndNotRequiredSize (Log_X224_Base + 6)
  42. // "An X.224 Data packet did not have the EOT bit set; this is not supported "
  43. // "in this implementation."
  44. #define Log_X224_DataFalseEOTNotSupported (Log_X224_Base + 7)
  45. // "An X.224 Data packet was received which did not contain a complete MCS "
  46. // "PDU. This is not supported in this implementation."
  47. #define Log_X224_DataIncompleteMCSPacketNotSupported (Log_X224_Base + 8)
  48. // "An X.224 Data packet was received containing more than one MCS PDU. This "
  49. // "is not supported in this implementation."
  50. #define Log_X224_DataMultipleMCSPDUsNotSupported (Log_X224_Base + 9)
  51. // "An X.224 packet was received with an unknown TPDU type."
  52. #define Log_X224_UnknownPacketType (Log_X224_Base + 10)
  53. // "An X.224 Connect packet was received when already connected."
  54. #define Log_X224_ConnectReceivedAfterConnected (Log_X224_Base + 11)
  55. // "An X.224 Connect packet was received containing a total packet length "
  56. // "field that was not at least 11 bytes, or a Lengh Indicator not at least "
  57. // "6 bytes."
  58. #define Log_X224_ConnectHeaderLenNotRequiredSize (Log_X224_Base + 12)
  59. // "An X.224 Connect packet was received which specified a connection level "
  60. // "other than class 0."
  61. #define Log_X224_ConnectNotClassZero (Log_X224_Base + 14)
  62. // "An X.224 Connect packet was received containing a TPDU_SIZE field whose "
  63. // "length field was not 1."
  64. #define Log_X224_ConnectTPDU_SIZELengthFieldIllegalValue (Log_X224_Base + 15)
  65. // "An X.224 Connect packet was received containing a TPDU_SIZE block size "
  66. // "outside range of 7..11."
  67. #define Log_X224_ConnectTPDU_SIZENotLegalRange (Log_X224_Base + 16)
  68. // "An X.224 Connect packet was received containing a Length Indicator that "
  69. // "does not match the packet length specified in the header."
  70. #define Log_X224_ConnectLenIndNotMatchingPacketLen (Log_X224_Base + 17)
  71. // "An X.224 Disconnect packet was received containing a Length Indicator "
  72. // "that does not match the packet length specified in the header."
  73. #define Log_X224_DisconnectLenIndNotMatchingPacketLen (Log_X224_Base + 18)
  74. // "An X.224 Data packet was received after an X.224 Disconnect or MCS DPum."
  75. #define Log_X224_ReceivedDataAfterRemoteDisconnect (Log_X224_Base + 19)
  76. /*
  77. * MCS
  78. */
  79. // "An MCS connect PDU was received containing a poorly formatted or "
  80. // "unsupported ASN.1 BER encoding."
  81. #define Log_MCS_ConnectPDUBadPEREncoding Log_MCS_Base
  82. // "An MCS connect PDU was received which is not supported under this "
  83. // "MCS implementation."
  84. #define Log_MCS_UnsupportedConnectPDU (Log_MCS_Base + 1)
  85. // "An MCS merge-domain PDU was received. Merging domains is not supported "
  86. // "in this implementation."
  87. #define Log_MCS_UnsupportedMergeDomainPDU (Log_MCS_Base + 2)
  88. // "MCS failed to successfully negotiate domain parameters with a remote "
  89. // "connection."
  90. #define Log_MCS_UnnegotiableDomainParams (Log_MCS_Base + 3)
  91. // "MCS received a connect PDU enumeration value outside the allowed range."
  92. #define Log_MCS_BadConnectPDUType (Log_MCS_Base + 4)
  93. // "MCS received a domain PDU enumeration value outside the allowed range."
  94. #define Log_MCS_BadDomainPDUType (Log_MCS_Base + 5)
  95. // "MCS received an unexpected Connect-Initial PDU."
  96. #define Log_MCS_UnexpectedConnectInitialPDU (Log_MCS_Base + 6)
  97. /*
  98. * RDP (The protocol formerly known as TShare)
  99. */
  100. // "A packet with an unknown PDUType2 has been received."
  101. #define Log_RDP_UnknownPDUType2 (Log_RDP_Base + 1)
  102. // "A packet with an unknown PDUType has been received."
  103. #define Log_RDP_UnknownPDUType (Log_RDP_Base + 2)
  104. // "A data packet has been received out of sequence."
  105. #define Log_RDP_DataPDUSequence (Log_RDP_Base + 3)
  106. // "An unknown Flow PDU has been received."
  107. #define Log_RDP_UnknownFlowPDU (Log_RDP_Base + 4)
  108. // "A control packet has been received out of sequence."
  109. #define Log_RDP_ControlPDUSequence (Log_RDP_Base + 5)
  110. // "A ControlPDU has been received with an invalid action."
  111. #define Log_RDP_InvalidControlPDUAction (Log_RDP_Base + 6)
  112. // "An InputPDU has been received with an invalid messageType."
  113. #define Log_RDP_InvalidInputPDUType (Log_RDP_Base + 7)
  114. // "An InputPDU has been received with invalid mouse flags."
  115. #define Log_RDP_InvalidInputPDUMouse (Log_RDP_Base + 8)
  116. // "An invalid RefreshRectPDU has been received."
  117. #define Log_RDP_InvalidRefreshRectPDU (Log_RDP_Base + 9)
  118. // "An error occurred creating Server-Client user data."
  119. #define Log_RDP_CreateUserDataFailed (Log_RDP_Base + 10)
  120. // "Failed to connect to Client."
  121. #define Log_RDP_ConnectFailed (Log_RDP_Base + 11)
  122. // "A ConfirmActivePDU was received from the Client with the wrong ShareID."
  123. #define Log_RDP_ConfirmActiveWrongShareID (Log_RDP_Base + 12)
  124. // "A ConfirmActivePDU was received from the Client with the wrong "
  125. // "originatorID."
  126. #define Log_RDP_ConfirmActiveWrongOriginator (Log_RDP_Base + 13)
  127. // "A PersistentListPDU was received of insufficient length."
  128. #define Log_RDP_PersistentKeyPDUBadLength (Log_RDP_Base + 18)
  129. // "A PersistentListPDU was received marked FIRST when a FIRST PDU was "
  130. // "previously received."
  131. #define Log_RDP_PersistentKeyPDUIllegalFIRST (Log_RDP_Base + 19)
  132. // "A PersistentListPDU was received which specified more keys than the "
  133. // "protocol allows."
  134. #define Log_RDP_PersistentKeyPDUTooManyTotalKeys (Log_RDP_Base + 20)
  135. // "A PersistentListPDU was received which contained more than the "
  136. // "specified number of keys for the cache."
  137. #define Log_RDP_PersistentKeyPDUTooManyCacheKeys (Log_RDP_Base + 21)
  138. // "An InputPDU was received of insufficient length."
  139. #define Log_RDP_InputPDUBadLength (Log_RDP_Base + 22)
  140. // "A BitmapCacheErrorPDU was received of bad length."
  141. #define Log_RDP_BitmapCacheErrorPDUBadLength (Log_RDP_Base + 23)
  142. // "A packet was received at the security layer that was too short for "
  143. // "the required security data."
  144. #define Log_RDP_SecurityDataTooShort (Log_RDP_Base + 24)
  145. // "A virtual channel packet was received that was too short for "
  146. // "required header data."
  147. #define Log_RDP_VChannelDataTooShort (Log_RDP_Base + 25)
  148. // "Share core data was received that was too short for required "
  149. // "header data."
  150. #define Log_RDP_ShareDataTooShort (Log_RDP_Base + 26)
  151. // "A bad SuppressOutputPDU was received - either too short or too many "
  152. // "rectangles."
  153. #define Log_RDP_BadSupressOutputPDU (Log_RDP_Base + 27)
  154. // "A ClipPDU was received that was too short for its header or data."
  155. #define Log_RDP_ClipPDUTooShort (Log_RDP_Base + 28)
  156. // "A ConfirmActivePDU was received that was too short for its header or data."
  157. #define Log_RDP_ConfirmActivePDUTooShort (Log_RDP_Base + 29)
  158. // "A FlowPDU was received that was too short."
  159. #define Log_RDP_FlowPDUTooShort (Log_RDP_Base + 30)
  160. // "A capability set has been received with a length less than the length of "
  161. // "a capability set header."
  162. #define Log_RDP_CapabilitySetTooSmall (Log_RDP_Base + 31)
  163. // "A capability set has been received with a length greater than the "
  164. // "total length of data received."
  165. #define Log_RDP_CapabilitySetTooLarge (Log_RDP_Base + 32)
  166. // "The negotiated cursor cache size = zero."
  167. #define Log_RDP_NoCursorCache (Log_RDP_Base + 33)
  168. // "The client capabilities received were unacceptable."
  169. #define Log_RDP_BadCapabilities (Log_RDP_Base + 34)
  170. // "The client GCC user data was malformed."
  171. #define Log_RDP_BadUserData (Log_RDP_Base + 35)
  172. // "Virtual channel decompression error."
  173. #define Log_RDP_VirtualChannelDecompressionErr (Log_RDP_Base + 36)
  174. // "Invalid VC compression format specified"
  175. #define Log_RDP_InvalidVCCompressionType (Log_RDP_Base + 37)
  176. // "Can't allocate out buffer"
  177. #define Log_RDP_AllocOutBuf (Log_RDP_Base + 38)
  178. // "Invalid channel ID"
  179. #define Log_RDP_InvalidChannelID (Log_RDP_Base + 39)
  180. // "Too many channels to join in NM_Connect"
  181. #define Log_RDP_VChannelsTooMany (Log_RDP_Base + 40)
  182. // "The shadow data is too short
  183. #define Log_RDP_ShadowDataTooShort (Log_RDP_Base + 41)
  184. // "The server certificate PDU is too short
  185. #define Log_RDP_BadServerCertificateData (Log_RDP_Base + 42)
  186. //
  187. // RDP_ failed to update the encryption session key.
  188. //
  189. #define Log_RDP_ENC_UpdateSessionKeyFailed (Log_RDP_ENC_Base + 1)
  190. //
  191. // RDP failed to decrypt protocol data.
  192. //
  193. #define Log_RDP_ENC_DecryptFailed (Log_RDP_ENC_Base + 2)
  194. //
  195. // RDP failed to encrypt protocol data.
  196. //
  197. #define Log_RDP_ENC_EncryptFailed (Log_RDP_ENC_Base + 3)
  198. //
  199. // RDP Data Encryption Package mismatch.
  200. //
  201. #define Log_RDP_ENC_EncPkgMismatch (Log_RDP_ENC_Base + 4)