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.

47 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. Eventlog.h
  5. Abstract:
  6. Class definition for the event log
  7. API wrapper class.
  8. Notes:
  9. Unicode only.
  10. History:
  11. 03/02/2001 rparsons Created
  12. --*/
  13. #include <windows.h>
  14. #define dwApplication ((DWORD)0)
  15. #define dwSystem ((DWORD)1)
  16. #define dwSecurity ((DWORD)2)
  17. #define APP_LOG_REG_PATH L"SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application"
  18. #define SYS_LOG_REG_PATH L"SYSTEM\\CurrentControlSet\\Services\\EventLog\\System"
  19. #define SEC_LOG_REG_PATH L"SYSTEM\\CurrentControlSet\\Services\\EventLog\\Security"
  20. class CEventLog {
  21. public:
  22. BOOL CreateEventSource(IN LPCWSTR lpwSourceFile,
  23. IN LPCWSTR lpwSourceName,
  24. IN DWORD dwLogType);
  25. BOOL LogEvent(IN LPCWSTR lpwSourceName,
  26. IN LPCWSTR lpwUNCServerName,
  27. IN WORD wType,
  28. IN DWORD dwEventID,
  29. IN WORD wNumStrings,
  30. IN LPCWSTR *lpwStrings);
  31. };