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.

47 lines
1.0 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996 - 1999
  5. //
  6. // File: elog.cpp
  7. //
  8. // Contents: Event log helper functions
  9. //
  10. // History: 02-Jan-97 terences created
  11. //
  12. //---------------------------------------------------------------------------
  13. HRESULT
  14. LogEvent(
  15. IN DWORD dwEventType,
  16. IN DWORD dwIdEvent,
  17. IN WORD cStrings,
  18. IN WCHAR const * const *apwszStrings);
  19. HRESULT
  20. LogEventHResult(
  21. IN DWORD dwEventType,
  22. IN DWORD dwIdEvent,
  23. IN HRESULT hr);
  24. HRESULT
  25. LogEventString(
  26. IN DWORD dwEventType,
  27. IN DWORD dwIdEvent,
  28. IN WCHAR const *pwszString);
  29. HRESULT
  30. LogEventStringHResult(
  31. IN DWORD dwEventType,
  32. IN DWORD dwIdEvent,
  33. IN WCHAR const *pwszString,
  34. IN HRESULT hr);
  35. HRESULT
  36. LogEventStringArrayHResult(
  37. IN DWORD dwEventType,
  38. IN DWORD dwIdEvent,
  39. IN DWORD cStrings,
  40. IN WCHAR const * const *apwszStrings,
  41. IN HRESULT hrEvent);