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.

56 lines
1.4 KiB

  1. /* Copyright 1999 American Power Conversion, All Rights Reserved
  2. *
  3. * Description:
  4. * The file defines the interface to the EventLogger. The
  5. * EventLogger is reponsible for logging information to the
  6. * NT machine's System Event Log.
  7. *
  8. *
  9. * Revision History:
  10. * sberard 29Mar1999 initial revision.
  11. *
  12. */
  13. #include <windows.h>
  14. #include <lmcons.h>
  15. #include <lmerr.h>
  16. #include <lmerrlog.h>
  17. #include "service.h"
  18. #ifndef _EVENTLOG_H
  19. #define _EVENTLOG_H
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. /**
  24. * LogEvent
  25. *
  26. * Description:
  27. * This function is responsible for logging information to the NT machine's
  28. * System Event log. The Event to log is specified by the parameter
  29. * anEventId, which is defined in the file lmerrlog.h. The anInfoStr
  30. * parameter is used to specify additional information to be merged with
  31. * the Event message.
  32. *
  33. * Parameters:
  34. * anEventId - the id of the Event to log
  35. * anInfoStr - additional information to merge with the message
  36. * or NULL if there is no additional information.
  37. * anErrVal - the error code as reported by GetLastError().
  38. *
  39. * Returns:
  40. * TRUE - if the Event was logged successfully
  41. * FALSE - if there was an error logging the Event
  42. *
  43. */
  44. BOOL LogEvent(DWORD anEventId, LPTSTR anInfoStr, DWORD anErrVal);
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48. #endif