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.

41 lines
758 B

  1. /*++
  2. Copyright(c) 2000 Microsoft Corporation
  3. Module Name:
  4. eventlog.h
  5. Author:
  6. Todd Carpenter
  7. Environment:
  8. Kernel Mode Only
  9. --*/
  10. #ifndef _EVENTLOG_H_
  11. #define _EVENTLOG_H_
  12. #include <ntddk.h>
  13. #define DWORD_ALIGN(value) (((ULONG)(value) + 3) & ~3)
  14. #define DWORD_ALIGNED(value) (!(NOT_DWORD_ALIGNED(value)))
  15. #define NOT_DWORD_ALIGNED(value) (value & 0x3)
  16. #define MIN(_a_,_b_) ((_a_) < (_b_) ? (_a_) : (_b_))
  17. #define MAX(_a_,_b_) ((_a_) > (_b_) ? (_a_) : (_b_))
  18. NTSTATUS
  19. WriteEventLogEntry (
  20. IN PVOID DeviceObject,
  21. IN ULONG ErrorCode,
  22. IN PVOID InsertionStrings, OPTIONAL
  23. IN ULONG StringCount, OPTIONAL
  24. IN PVOID DumpData, OPTIONAL
  25. IN ULONG DataSize OPTIONAL
  26. );
  27. #endif