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.

47 lines
1.2 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. #define DPLOG_MAX_STRING (512 * sizeof(TCHAR)) // Max string length (in bytes) for MEM logging
  17. #define DPLOG_HEADERSIZE (sizeof(SHARED_LOG_FILE))
  18. #define DPLOG_ENTRYSIZE (sizeof(MEMLOG_ENTRY) + DPLOG_MAX_STRING)
  19. #define BASE_LOG_MEMFILENAME "DPLAY8MEMLOG-0"
  20. #define BASE_LOG_MUTEXNAME "DPLAY8MEMLOGMUTEX-0"
  21. #pragma warning(disable:4200) // 0 length array
  22. typedef struct _MEM_LOG_ENTRY
  23. {
  24. DWORD tLogged;
  25. TCHAR str[0];
  26. } MEMLOG_ENTRY, *PMEMLOG_ENTRY;
  27. typedef struct _SHARED_LOG_FILE
  28. {
  29. DWORD nEntries;
  30. DWORD cbLine;
  31. DWORD iWrite;
  32. } SHARED_LOG_FILE, *PSHARED_LOG_FILE;
  33. #pragma warning(default:4200)
  34. #ifdef DPNBUILD_LIBINTERFACE
  35. extern PSHARED_LOG_FILE g_pMemLog;
  36. #endif // DPNBUILD_LIBINTERFACE
  37. #endif // _DPLAY_SHARED_MEMLOG_