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.

50 lines
1.3 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 2000 - 2001 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: memlog.h
  6. * Content: format of the memory log for DPlay debugging
  7. *
  8. * History:
  9. * Date By Reason
  10. * ==== == ======
  11. * 08-24-00 masonb Created
  12. *
  13. ***************************************************************************/
  14. #ifndef _DPLAY_SHARED_MEMLOG_
  15. #define _DPLAY_SHARED_MEMLOG_
  16. // Max string length (in bytes) for MEM logging
  17. #define DPLOG_MAX_STRING (512 * sizeof(TCHAR))
  18. // Default number of entries for mem log. Adjustable from win.ini
  19. #define DPLOG_DEFAULT_ENTRIES 40000
  20. #define DPLOG_HEADERSIZE (sizeof(SHARED_LOG_FILE))
  21. #define DPLOG_ENTRYSIZE (sizeof(MEMLOG_ENTRY) + DPLOG_MAX_STRING)
  22. #define BASE_LOG_MEMFILENAME "DPLAY8MEMLOG-0"
  23. #define BASE_LOG_MUTEXNAME "DPLAY8MEMLOGMUTEX-0"
  24. #pragma warning(disable:4200) // 0 length array
  25. typedef struct _MEM_LOG_ENTRY
  26. {
  27. DWORD tLogged;
  28. TCHAR str[0];
  29. } MEMLOG_ENTRY, *PMEMLOG_ENTRY;
  30. typedef struct _SHARED_LOG_FILE
  31. {
  32. DWORD nEntries;
  33. DWORD cbLine;
  34. DWORD iWrite;
  35. } SHARED_LOG_FILE, *PSHARED_LOG_FILE;
  36. #pragma warning(default:4200)
  37. #ifdef DPNBUILD_LIBINTERFACE
  38. extern PSHARED_LOG_FILE g_pMemLog;
  39. #endif // DPNBUILD_LIBINTERFACE
  40. #endif // _DPLAY_SHARED_MEMLOG_