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
625 B

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. eventlog.h
  5. Abstract:
  6. SIS Groveler event log interface include file
  7. Authors:
  8. John Douceur, 1998
  9. Environment:
  10. User Mode
  11. Revision History:
  12. --*/
  13. #ifndef _INC_EVENTLOG
  14. #define _INC_EVENTLOG
  15. class EventLog
  16. {
  17. public:
  18. EventLog();
  19. ~EventLog();
  20. static bool setup_registry();
  21. bool report_event(
  22. DWORD event_id,
  23. int string_count,
  24. // _TCHAR *string
  25. ...);
  26. private:
  27. static const _TCHAR *service_name;
  28. static const _TCHAR *message_filename;
  29. static const DWORD types_supported;
  30. HANDLE event_source_handle;
  31. };
  32. #endif /* _INC_EVENTLOG */