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.

55 lines
1.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1996 - 1999
  6. //
  7. // File: errlog.h
  8. //
  9. // Contents: generic error logging
  10. //
  11. // History: 19-Jun-00 reidk created
  12. //
  13. //--------------------------------------------------------------------------
  14. #ifndef ERRLOG_H
  15. #define ERRLOG_H
  16. #define ERRLOG_CLIENT_ID_CATDBSCV 1
  17. #define ERRLOG_CLIENT_ID_CATADMIN 2
  18. #define ERRLOG_CLIENT_ID_CATDBCLI 3
  19. #define ERRLOG_CLIENT_ID_WAITSVC 4
  20. #define ERRLOG_CLIENT_ID_TIMESTAMP 5
  21. #define ERRLOG_LOGERROR_LASTERROR(x,y) ErrLog_LogError(x, y, __LINE__, 0, FALSE);
  22. #define ERRLOG_LOGERROR_PARAM(x,y,z) ErrLog_LogError(x, y, __LINE__, z, FALSE);
  23. #define ERRLOG_LOGERROR_WARNING(x,y,z) ErrLog_LogError(x, y, __LINE__, z, TRUE);
  24. void
  25. ErrLog_LogError(
  26. LPWSTR pwszLogFileName, // NULL - means log to the catalog DB logfile
  27. DWORD dwClient,
  28. DWORD dwLine,
  29. DWORD dwErr, // 0 - means use GetLastError()
  30. BOOL fWarning,
  31. BOOL fLogToFileOnly);
  32. void
  33. ErrLog_LogString(
  34. LPWSTR pwszLogFileName, // NULL - means log to the catalog DB logfile
  35. LPWSTR pwszMessageString,
  36. LPWSTR pwszExtraString,
  37. BOOL fLogToFileOnly);
  38. BOOL
  39. TimeStampFile_Touch(
  40. LPWSTR pwszDir);
  41. BOOL
  42. TimeStampFile_InSync(
  43. LPWSTR pwszDir1,
  44. LPWSTR pwszDir2,
  45. BOOL *pfInSync);
  46. #endif // ERRLOG_H