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.

384 lines
7.7 KiB

  1. /*++ BUILD Version: 0001 Increment if a change has global effects
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. eventlog.h
  5. Abstract:
  6. Header file for the internal eventlog interfaces (util\eventlog.c)
  7. Environment:
  8. User Mode - Win32
  9. Notes:
  10. --*/
  11. #ifndef _NTFRS_EVENTLOG_INCLUDED_
  12. #define _NTFRS_EVENTLOG_INCLUDED_
  13. #endif
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. //
  18. // Similar eventlog messages are written to the EventLog
  19. // once in EVENTLOG_FILTER_TIME seconds.
  20. //
  21. #define EVENTLOG_FILTER_TIME 86400 // 86400(Dec) secs = 1 day
  22. #define CONVERTTOSEC 10000000 // 10^7
  23. //
  24. // Hash Table definitions
  25. //
  26. PQHASH_TABLE HTEventLogTimes;
  27. //
  28. // Hash Table size
  29. //
  30. #define ELHASHTABLESIZE sizeof(QHASH_ENTRY)*100
  31. #define EPRINT0(_Id) \
  32. FrsEventLog0(_Id)
  33. #define EPRINT1(_Id, _p1) \
  34. FrsEventLog1(_Id, _p1)
  35. #define EPRINT2(_Id, _p1, _p2) \
  36. FrsEventLog2(_Id, _p1, _p2)
  37. #define EPRINT3(_Id, _p1, _p2, _p3) \
  38. FrsEventLog3(_Id, _p1, _p2, _p3)
  39. #define EPRINT4(_Id, _p1, _p2, _p3, _p4) \
  40. FrsEventLog4(_Id, _p1, _p2, _p3, _p4)
  41. #define EPRINT5(_Id, _p1, _p2, _p3, _p4, _p5) \
  42. FrsEventLog5(_Id, _p1, _p2, _p3, _p4, _p5)
  43. #define EPRINT6(_Id, _p1, _p2, _p3, _p4, _p5, _p6) \
  44. FrsEventLog6(_Id, _p1, _p2, _p3, _p4, _p5, _p6)
  45. #define EPRINT7(_Id, _p1, _p2, _p3, _p4, _p5, _p6, _p7) \
  46. FrsEventLog7(_Id, _p1, _p2, _p3, _p4, _p5, _p6, _p7)
  47. #define EPRINT8(_Id, _p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8) \
  48. FrsEventLog8(_Id, _p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8)
  49. #define EPRINT9(_Id, _p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8, _p9) \
  50. FrsEventLog9(_Id, _p1, _p2, _p3, _p4, _p5, _p6, _p7, _p8, _p9)
  51. VOID
  52. FrsEventLog0(
  53. IN DWORD EventMessageId
  54. );
  55. /*++
  56. Routine Description:
  57. Logs an event to the event log with no insertion strings.
  58. WARNING -- this function may be called from inside of DPRINTs. So
  59. do not call DPRINT (or any function referenced by
  60. DPRINT) from this function.
  61. Arguments:
  62. EventMessageId - Supplies the message ID to be logged.
  63. Return Value:
  64. None.
  65. --*/
  66. VOID
  67. FrsEventLog1(
  68. IN DWORD EventMessageId,
  69. IN PWCHAR EventMessage1
  70. );
  71. /*++
  72. Routine Description:
  73. Logs an event to the event log with one insertion string.
  74. WARNING -- this function may be called from inside of DPRINTs. So
  75. do not call DPRINT (or any function referenced by
  76. DPRINT) from this function.
  77. Arguments:
  78. EventMessageId - Supplies the message ID to be logged.
  79. EventMessage1 - Insertion strings
  80. Return Value:
  81. None.
  82. --*/
  83. VOID
  84. FrsEventLog2(
  85. IN DWORD EventMessageId,
  86. IN PWCHAR EventMessage1,
  87. IN PWCHAR EventMessage2
  88. );
  89. /*++
  90. Routine Description:
  91. Logs an event to the event log with two insertion strings.
  92. WARNING -- this function may be called from inside of DPRINTs. So
  93. do not call DPRINT (or any function referenced by
  94. DPRINT) from this function.
  95. Arguments:
  96. EventMessageId - Supplies the message ID to be logged.
  97. EventMessage1..2 - Insertion strings
  98. Return Value:
  99. None.
  100. --*/
  101. VOID
  102. FrsEventLog3(
  103. IN DWORD EventMessageId,
  104. IN PWCHAR EventMessage1,
  105. IN PWCHAR EventMessage2,
  106. IN PWCHAR EventMessage3
  107. );
  108. /*++
  109. Routine Description:
  110. Logs an event to the event log with three insertion strings.
  111. WARNING -- this function may be called from inside of DPRINTs. So
  112. do not call DPRINT (or any function referenced by
  113. DPRINT) from this function.
  114. Arguments:
  115. EventMessageId - Supplies the message ID to be logged.
  116. EventMessage1..3 - Insertion strings
  117. Return Value:
  118. None.
  119. --*/
  120. VOID
  121. FrsEventLog4(
  122. IN DWORD EventMessageId,
  123. IN PWCHAR EventMessage1,
  124. IN PWCHAR EventMessage2,
  125. IN PWCHAR EventMessage3,
  126. IN PWCHAR EventMessage4
  127. );
  128. /*++
  129. Routine Description:
  130. Logs an event to the event log with four insertion strings.
  131. WARNING -- this function may be called from inside of DPRINTs. So
  132. do not call DPRINT (or any function referenced by
  133. DPRINT) from this function.
  134. Arguments:
  135. EventMessageId - Supplies the message ID to be logged.
  136. EventMessage1..4 - Insertion strings
  137. Return Value:
  138. None.
  139. --*/
  140. VOID
  141. FrsEventLog5(
  142. IN DWORD EventMessageId,
  143. IN PWCHAR EventMessage1,
  144. IN PWCHAR EventMessage2,
  145. IN PWCHAR EventMessage3,
  146. IN PWCHAR EventMessage4,
  147. IN PWCHAR EventMessage5
  148. );
  149. /*++
  150. Routine Description:
  151. Logs an event to the event log with five insertion strings.
  152. WARNING -- this function may be called from inside of DPRINTs. So
  153. do not call DPRINT (or any function referenced by
  154. DPRINT) from this function.
  155. Arguments:
  156. EventMessageId - Supplies the message ID to be logged.
  157. EventMessage1..5 - Insertion strings
  158. Return Value:
  159. None.
  160. --*/
  161. VOID
  162. FrsEventLog6(
  163. IN DWORD EventMessageId,
  164. IN PWCHAR EventMessage1,
  165. IN PWCHAR EventMessage2,
  166. IN PWCHAR EventMessage3,
  167. IN PWCHAR EventMessage4,
  168. IN PWCHAR EventMessage5,
  169. IN PWCHAR EventMessage6
  170. );
  171. /*++
  172. Routine Description:
  173. Logs an event to the event log with six insertion strings.
  174. WARNING -- this function may be called from inside of DPRINTs. So
  175. do not call DPRINT (or any function referenced by
  176. DPRINT) from this function.
  177. Arguments:
  178. EventMessageId - Supplies the message ID to be logged.
  179. EventMessage1..6 - Insertion strings
  180. Return Value:
  181. None.
  182. --*/
  183. VOID
  184. FrsEventLog7(
  185. IN DWORD EventMessageId,
  186. IN PWCHAR EventMessage1,
  187. IN PWCHAR EventMessage2,
  188. IN PWCHAR EventMessage3,
  189. IN PWCHAR EventMessage4,
  190. IN PWCHAR EventMessage5,
  191. IN PWCHAR EventMessage6,
  192. IN PWCHAR EventMessage7
  193. );
  194. /*++
  195. Routine Description:
  196. Logs an event to the event log with seven insertion strings.
  197. WARNING -- this function may be called from inside of DPRINTs. So
  198. do not call DPRINT (or any function referenced by
  199. DPRINT) from this function.
  200. Arguments:
  201. EventMessageId - Supplies the message ID to be logged.
  202. EventMessage1..7 - Insertion strings
  203. Return Value:
  204. None.
  205. --*/
  206. VOID
  207. FrsEventLog8(
  208. IN DWORD EventMessageId,
  209. IN PWCHAR EventMessage1,
  210. IN PWCHAR EventMessage2,
  211. IN PWCHAR EventMessage3,
  212. IN PWCHAR EventMessage4,
  213. IN PWCHAR EventMessage5,
  214. IN PWCHAR EventMessage6,
  215. IN PWCHAR EventMessage7,
  216. IN PWCHAR EventMessage8
  217. );
  218. /*++
  219. Routine Description:
  220. Logs an event to the event log with nine insertion strings.
  221. WARNING -- this function may be called from inside of DPRINTs. So
  222. do not call DPRINT (or any function referenced by
  223. DPRINT) from this function.
  224. Arguments:
  225. EventMessageId - Supplies the message ID to be logged.
  226. EventMessage1..8 - Insertion strings
  227. Return Value:
  228. None.
  229. --*/
  230. VOID
  231. FrsEventLog9(
  232. IN DWORD EventMessageId,
  233. IN PWCHAR EventMessage1,
  234. IN PWCHAR EventMessage2,
  235. IN PWCHAR EventMessage3,
  236. IN PWCHAR EventMessage4,
  237. IN PWCHAR EventMessage5,
  238. IN PWCHAR EventMessage6,
  239. IN PWCHAR EventMessage7,
  240. IN PWCHAR EventMessage8,
  241. IN PWCHAR EventMessage9
  242. );
  243. /*++
  244. Routine Description:
  245. Logs an event to the event log with nine insertion strings.
  246. WARNING -- this function may be called from inside of DPRINTs. So
  247. do not call DPRINT (or any function referenced by
  248. DPRINT) from this function.
  249. Arguments:
  250. EventMessageId - Supplies the message ID to be logged.
  251. EventMessage1..9 - Insertion strings
  252. Return Value:
  253. None.
  254. --*/
  255. #ifdef __cplusplus
  256. }
  257. #endif _NTFRS_EVENTLOG_INCLUDED_