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
996 B

  1. #ifndef __APPVERIFIER_LOG_H_
  2. #define __APPVERIFIER_LOG_H_
  3. #include "LogEvents.h"
  4. #define LOG_FILE_MAGIC "APPVLOG"
  5. typedef enum {
  6. LOG_ERROR,
  7. LOG_WARNING,
  8. LOG_INFO
  9. } MSGLEVEL;
  10. typedef struct tagLOGFILEHEADER {
  11. char szMagic[8];
  12. char szMachineName[64];
  13. char szUserName[64];
  14. SYSTEMTIME time;
  15. OSVERSIONINFOEXA OSVersion;
  16. DWORD dwRecords;
  17. } LOGFILEHEADER, *PLOGFILEHEADER;
  18. typedef struct tagISSUEREC {
  19. DWORD dwOccurenceCount;
  20. DWORD dwUnused;
  21. } ISSUEREC, *PISSUEREC;
  22. #define LOGFILESIZE (sizeof(LOGFILEHEADER) + MAX_ISSUES_COUNT * sizeof(ISSUEREC))
  23. #define EVENTIND(ev) ((ev - 1) / 3)
  24. #define EVENT_FROM_IND(ind) (1 + (ind * 3))
  25. extern TCHAR g_szFileLog[MAX_PATH];
  26. BOOL
  27. InitFileLogSupport(
  28. LPCTSTR lpszLogFileName
  29. );
  30. BOOL
  31. LogAVStatus(
  32. DWORD dwStatus
  33. );
  34. void _cdecl LogMessage( MSGLEVEL mlevel, LPTSTR pszFmt, ... );
  35. #endif // __APPVERIFIER_LOG_H_