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.

35 lines
921 B

  1. #ifndef _LOG_UTILS_H_
  2. #define _LOG_UTILS_H_
  3. #define LOG_READ_ACCESS 0x00010000
  4. #define LOG_WRITE_ACCESS 0x00020000
  5. #define LOG_ACCESS_MASK 0x000F0000
  6. #define LOG_CREATE_NEW 0x00000001
  7. #define LOG_CREATE_ALWAYS 0x00000002
  8. #define LOG_OPEN_ALWAYS 0x00000003
  9. #define LOG_OPEN_EXISTING 0x00000004
  10. #define LOG_CREATE_MASK 0x0000000F
  11. #define FLAGS_CLOSE_QUERY 0x00000001
  12. #define DWORD_MULTIPLE(x) ((((x)+sizeof(DWORD)-1)/sizeof(DWORD))*sizeof(DWORD))
  13. #define CLEAR_FIRST_FOUR_BYTES(x) *(DWORD *)(x) = 0L
  14. LONG __stdcall
  15. OpenLogW (
  16. IN LPCWSTR szLogFileName,
  17. IN DWORD dwAccessFlags,
  18. IN LPDWORD lpdwLogType,
  19. IN HQUERY hQuery,
  20. IN DWORD dwMaxRecords
  21. );
  22. LONG __stdcall UpdateLog (
  23. IN LPDWORD pdwSampleTime);
  24. LONG __stdcall CloseLog(IN DWORD dwFlags);
  25. LONG __stdcall GetLogFileSize (IN LONGLONG *llSize);
  26. #endif // _LOG_UTILS_H_
  27.