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.

57 lines
704 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. DWORD status,
  24. int string_count,
  25. // _TCHAR *string
  26. ...);
  27. private:
  28. static const _TCHAR *service_name;
  29. static const _TCHAR *message_filename;
  30. static const DWORD types_supported;
  31. HANDLE event_source_handle;
  32. };
  33. #endif /* _INC_EVENTLOG */