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.

383 lines
11 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // Copyright (c) 1997-2002 Microsoft Corporation
  4. //
  5. // Event Log for Remote Assistance
  6. //
  7. // 04/17/2002 HueiWang Created.
  8. // 04/18/2002 JPeresz Modified as Per Remote Assistance Logging DCR for Server 2003
  9. //
  10. //
  11. ///////////////////////////////////////////////////////////////////////////////
  12. //
  13. // Salem related Event start from event ID 5001
  14. // PCHealth related Event Start from event ID 0 to 5000
  15. //
  16. ///////////////////////////////////////////////////////////////////////////////
  17. //
  18. // All PCHEALTH related Event should come here
  19. // message below needs user domain, account name, and expert's IP adress
  20. // send from mstscax and also from TermSrv.
  21. //
  22. // MessageId=0
  23. // Facility=RA
  24. // Severity=Success
  25. // SymbolicName=RA_I_STARTHERE
  26. // Language=English
  27. // All PCHEALTH message should come here
  28. // .
  29. //
  30. // Values are 32 bit values layed out as follows:
  31. //
  32. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  33. // 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  34. // +---+-+-+-----------------------+-------------------------------+
  35. // |Sev|C|R| Facility | Code |
  36. // +---+-+-+-----------------------+-------------------------------+
  37. //
  38. // where
  39. //
  40. // Sev - is the severity code
  41. //
  42. // 00 - Success
  43. // 01 - Informational
  44. // 10 - Warning
  45. // 11 - Error
  46. //
  47. // C - is the Customer code flag
  48. //
  49. // R - is a reserved bit
  50. //
  51. // Facility - is the facility code
  52. //
  53. // Code - is the facility's status code
  54. //
  55. //
  56. // Define the facility codes
  57. //
  58. //
  59. // Define the severity codes
  60. //
  61. #define STATUS_SEVERITY_WARNING 0x2
  62. #define STATUS_SEVERITY_SUCCESS 0x0
  63. #define STATUS_SEVERITY_INFORMATIONAL 0x1
  64. #define STATUS_SEVERITY_ERROR 0x3
  65. //
  66. // MessageId: RA_I_SENDER_FILESENT
  67. //
  68. // MessageText:
  69. //
  70. // RA: A file named %1, with file size %2 bytes was successfully sent by (local user) %3 to (remote user) %4 (remote IP: %5).
  71. //
  72. #define RA_I_SENDER_FILESENT ((DWORD)0x00000000L)
  73. //
  74. // MessageId: RA_I_RECEIVER_FILERECEIVED
  75. //
  76. // MessageText:
  77. //
  78. // RA: A file named %1 with size %2 bytes was received from (remote user) %3 (remote IP: %4) by (local user) %5.
  79. //
  80. #define RA_I_RECEIVER_FILERECEIVED ((DWORD)0x00000001L)
  81. //
  82. // MessageId: RA_I_XMLERRORPARSINGRATICKET
  83. //
  84. // MessageText:
  85. //
  86. // RA: A XML parsing error for (local user) %1 occurred when attempting to process a remote assistance ticket.
  87. //
  88. #define RA_I_XMLERRORPARSINGRATICKET ((DWORD)0x00000002L)
  89. //3 - Novice
  90. //
  91. // MessageId: RA_I_NOVICEACCEPTCONTROLREQ
  92. //
  93. // MessageText:
  94. //
  95. // RA: Expert user (remote user: %1) has started controlling novice (local user: %2)
  96. //
  97. #define RA_I_NOVICEACCEPTCONTROLREQ ((DWORD)0x00000003L)
  98. //4 - Novice
  99. //
  100. // MessageId: RA_I_CONTROLENDED
  101. //
  102. // MessageText:
  103. //
  104. // RA: Expert user (remote user: %1) has stopped controlling novice (local user: %2).
  105. //
  106. #define RA_I_CONTROLENDED ((DWORD)0x00000004L)
  107. //5 - Expert
  108. //
  109. // MessageId: RA_I_CONTROLSTARTED_EXPERT
  110. //
  111. // MessageText:
  112. //
  113. // RA: Expert (local user: %1) has started controlling novice user (remote user: %2).
  114. //
  115. #define RA_I_CONTROLSTARTED_EXPERT ((DWORD)0x00000005L)
  116. //6 - Expert
  117. //
  118. // MessageId: RA_I_CONTROLENDED_EXPERT
  119. //
  120. // MessageText:
  121. //
  122. // RA: Expert (local user: %1) has stopped controlling novice user (remote user: %2).
  123. //
  124. #define RA_I_CONTROLENDED_EXPERT ((DWORD)0x00000006L)
  125. ///////////////////////////////////////////////////////////////////////////////
  126. //
  127. // All Salem related Event should come here
  128. // message below needs user domain, account name, and expert's IP adress
  129. // send from mstscax and also from TermSrv.
  130. //
  131. //
  132. // MessageId: SESSMGR_E_HELPACCOUNT
  133. //
  134. // MessageText:
  135. //
  136. // The HelpAssistant account is disabled or missing, or the password could not be verified. Remote Assistance will be disabled. Restart the computer in safe mode and type the following text at the command prompt: sessmgr.exe -service. If the problem persists, contact Microsoft Product Support.
  137. //
  138. #define SESSMGR_E_HELPACCOUNT ((DWORD)0x00001388L)
  139. // 5001
  140. //
  141. // MessageId: SESSMGR_E_HELPSESSIONTABLE
  142. //
  143. // MessageText:
  144. //
  145. // Windows was unable to open the help ticket table (error code %1). Remote Assistance will be disabled. Restart the computer in safe mode and type the following text at the command prompt: sessmgr.exe -service. If the problem persists, contact Microsoft Product Support.
  146. //
  147. #define SESSMGR_E_HELPSESSIONTABLE ((DWORD)0x00001389L)
  148. // 5002
  149. //
  150. // MessageId: SESSMGR_E_INIT_ENCRYPTIONLIB
  151. //
  152. // MessageText:
  153. //
  154. // Encryption/decryption did not start properly (error code %1). Remote Assistance will be disabled. Restart the computer. If the problem persists, contact Microsoft Product Support.
  155. //
  156. #define SESSMGR_E_INIT_ENCRYPTIONLIB ((DWORD)0x0000138AL)
  157. //5003
  158. //
  159. // MessageId: SESSMGR_E_SETUP
  160. //
  161. // MessageText:
  162. //
  163. // An error occurred during Remote Assistance setup. Remote Assistance will be disabled. Restart the computer in safe mode and type the following text at the command prompt: sessmgr.exe -service. If the problem persists, contact Microsoft Product Support.
  164. //
  165. #define SESSMGR_E_SETUP ((DWORD)0x0000138BL)
  166. // 5004
  167. //
  168. // MessageId: SESSMGR_E_WSASTARTUP
  169. //
  170. // MessageText:
  171. //
  172. // The winsock library did not start properly (error code %1). Remote Assistance will be disabled. Restart the computer. If the problem persists, contact Microsoft Product Support.
  173. //
  174. #define SESSMGR_E_WSASTARTUP ((DWORD)0x0000138CL)
  175. // 5005
  176. //
  177. // MessageId: SESSMGR_E_GENERALSTARTUP
  178. //
  179. // MessageText:
  180. //
  181. // The Remote Desktop Help session manager did not start properly (error code %1). Remote Assistance will be disabled. Restart the computer in safe mode and type the following text at the command prompt: sessmgr.exe -service. If the problem persists, contact Microsoft Product Support.
  182. //
  183. #define SESSMGR_E_GENERALSTARTUP ((DWORD)0x0000138DL)
  184. // 5006
  185. //
  186. // MessageId: SESSMGR_E_SESSIONRESOLVER
  187. //
  188. // MessageText:
  189. //
  190. // The session resolver did not start properly (error code %1). Remote Assistance will be disabled. The Help and Support service session resolver is not set up properly. Rerun Windows XP Setup. If the problem persists, contact Microsoft Product Support.
  191. //
  192. #define SESSMGR_E_SESSIONRESOLVER ((DWORD)0x0000138EL)
  193. // 5007
  194. //
  195. // MessageId: SESSMGR_E_REGISTERSESSIONRESOLVER
  196. //
  197. // MessageText:
  198. //
  199. // Windows is unable to register the session resolver (error code %1). Remote Assistance will be disabled. Restart the computer. If the problem persists, contact Microsoft Product Support.
  200. //
  201. #define SESSMGR_E_REGISTERSESSIONRESOLVER ((DWORD)0x0000138FL)
  202. // 5008
  203. //
  204. // MessageId: SESSMGR_E_ICSHELPER
  205. //
  206. // MessageText:
  207. //
  208. // Windows is unable to start the ICS library (error code %1). Remote Assistance will be disabled. Restart the computer. If the problem persists, contact Microsoft Product Support.
  209. //
  210. #define SESSMGR_E_ICSHELPER ((DWORD)0x00001390L)
  211. // 5009
  212. //
  213. // MessageId: SESSMGR_E_RESTRICTACCESS
  214. //
  215. // MessageText:
  216. //
  217. // Windows is unable to set up access control to the Remote Desktop Help session manager (error code %1). Remote Assistance will be disabled. Restart the computer. If the problem persists, contact Microsoft Product Support.
  218. //
  219. #define SESSMGR_E_RESTRICTACCESS ((DWORD)0x00001391L)
  220. //
  221. // General Remote Assistance session messges
  222. //
  223. //5010
  224. //
  225. // MessageId: SESSMGR_I_REMOTEASSISTANCE_BEGIN
  226. //
  227. // MessageText:
  228. //
  229. // User %1\%2 has accepted a %3 session from %4 (visible IP address: %5).
  230. //
  231. #define SESSMGR_I_REMOTEASSISTANCE_BEGIN ((DWORD)0x00001392L)
  232. //5011
  233. //
  234. // MessageId: SESSMGR_I_REMOTEASSISTANCE_END
  235. //
  236. // MessageText:
  237. //
  238. // A %3 session for user %1\%2 from %4 (visible IP address: %5) ended.
  239. //
  240. #define SESSMGR_I_REMOTEASSISTANCE_END ((DWORD)0x00001393L)
  241. //5012
  242. //
  243. // MessageId: SESSMGR_I_REMOTEASSISTANCE_USERREJECT
  244. //
  245. // MessageText:
  246. //
  247. // User %1\%2 has not accepted a %3 session (visible IP address: %5).
  248. //
  249. #define SESSMGR_I_REMOTEASSISTANCE_USERREJECT ((DWORD)0x00001394L)
  250. //5013
  251. //
  252. // MessageId: SESSMGR_I_REMOTEASSISTANCE_TIMEOUT
  253. //
  254. // MessageText:
  255. //
  256. // User %1\%2 did not respond to a %3 session from %4 (visible IP address: %5). The invitation timed out.
  257. //
  258. #define SESSMGR_I_REMOTEASSISTANCE_TIMEOUT ((DWORD)0x00001395L)
  259. //5014
  260. //
  261. // MessageId: SESSMGR_I_REMOTEASSISTANCE_INACTIVEUSER
  262. //
  263. // MessageText:
  264. //
  265. // A %3 session for user %1\%2 from %4 (visible IP address: %5) was not accepted because the user is not currently logged on or the session is inactive.
  266. //
  267. #define SESSMGR_I_REMOTEASSISTANCE_INACTIVEUSER ((DWORD)0x00001396L)
  268. //5015
  269. //
  270. // MessageId: SESSMGR_I_REMOTEASSISTANCE_USERALREADYHELP
  271. //
  272. // MessageText:
  273. //
  274. // A %3 session for user %1\%2 from %4 (visible IP address: %5) was not accepted because the user has already been helped.
  275. //
  276. #define SESSMGR_I_REMOTEASSISTANCE_USERALREADYHELP ((DWORD)0x00001397L)
  277. //5016
  278. //
  279. // MessageId: SESSMGR_I_REMOTEASSISTANCE_UNKNOWNRESOLVERERRORCODE
  280. //
  281. // MessageText:
  282. //
  283. // A %3 session for user %1\%2 from %4 (visible IP address: %5) was not accepted due to the following unknown error: %6.
  284. //
  285. #define SESSMGR_I_REMOTEASSISTANCE_UNKNOWNRESOLVERERRORCODE ((DWORD)0x00001398L)
  286. //5017
  287. //
  288. // MessageId: SESSMGR_I_REMOTEASSISTANCE_CONNECTTOEXPERT
  289. //
  290. // MessageText:
  291. //
  292. // Novice (local user: %1\%2) has started a Remote Assistance reverse connection to %3.
  293. //
  294. #define SESSMGR_I_REMOTEASSISTANCE_CONNECTTOEXPERT ((DWORD)0x00001399L)
  295. //5018
  296. //
  297. // MessageId: SESSMGR_E_REMOTEASSISTANCE_CONNECTFAILED
  298. //
  299. // MessageText:
  300. //
  301. // Remote assistance connection from %1 (visible IP address: %2) was not accepted because the help ticket is invalid, expired, or deleted.
  302. //
  303. #define SESSMGR_E_REMOTEASSISTANCE_CONNECTFAILED ((DWORD)0x0000139AL)
  304. //5019
  305. //
  306. // MessageId: SESSMGR_I_REMOTEASSISTANCE_CREATETICKET
  307. //
  308. // MessageText:
  309. //
  310. // A remote assistance ticket has been created with duration: %1hrs for user %2\%3.
  311. //
  312. #define SESSMGR_I_REMOTEASSISTANCE_CREATETICKET ((DWORD)0x0000139BL)
  313. //5020
  314. //
  315. // MessageId: SESSMGR_I_REMOTEASSISTANCE_DELETEDTICKET
  316. //
  317. // MessageText:
  318. //
  319. // A remote assistance ticket has been deleted for user %1\%2.
  320. //
  321. #define SESSMGR_I_REMOTEASSISTANCE_DELETEDTICKET ((DWORD)0x0000139CL)
  322. //5021
  323. //
  324. // MessageId: SESSMGR_I_CREATEXPERTTICKET
  325. //
  326. // MessageText:
  327. //
  328. // %1 has created a Remote Assistance Expert Ticket for use with Reverse Connect. The Connection Parameters for this Expert ticket are %2.
  329. //
  330. #define SESSMGR_I_CREATEXPERTTICKET ((DWORD)0x0000139DL)
  331. //5022
  332. //
  333. // MessageId: SESSMGR_I_ACCEPTLISTENREVERSECONNECT
  334. //
  335. // MessageText:
  336. //
  337. // Remote Assistance (local user: %1) has opened an incoming data channel on this computer for a Remote Assistance session. The incoming port is %2.
  338. //
  339. #define SESSMGR_I_ACCEPTLISTENREVERSECONNECT ((DWORD)0x0000139EL)
  340. //5023
  341. //
  342. // MessageId: SESSMGR_I_EXPERTUSETICKET
  343. //
  344. // MessageText:
  345. //
  346. // Expert (local user: %1) has opened the following ticket: %2.
  347. //
  348. #define SESSMGR_I_EXPERTUSETICKET ((DWORD)0x0000139FL)