windows-nt/Source/XPSP1/NT/multimedia/directx/dplay/dpnathlp/common/memlog.h

48 lines
1.2 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*==========================================================================
*
* Copyright (C) 2000 - 2001 Microsoft Corporation. All Rights Reserved.
*
* File: memlog.h
* Content: format of the memory log for DPlay debugging
*
* History:
* Date By Reason
* ==== == ======
* 08-24-00 masonb Created
*
***************************************************************************/
#ifndef _DPLAY_SHARED_MEMLOG_
#define _DPLAY_SHARED_MEMLOG_
#define DPLOG_MAX_STRING (512 * sizeof(TCHAR)) // Max string length (in bytes) for MEM logging
#define DPLOG_HEADERSIZE (sizeof(SHARED_LOG_FILE))
#define DPLOG_ENTRYSIZE (sizeof(MEMLOG_ENTRY) + DPLOG_MAX_STRING)
#define BASE_LOG_MEMFILENAME "DPLAY8MEMLOG-0"
#define BASE_LOG_MUTEXNAME "DPLAY8MEMLOGMUTEX-0"
#pragma warning(disable:4200) // 0 length array
typedef struct _MEM_LOG_ENTRY
{
DWORD tLogged;
TCHAR str[0];
} MEMLOG_ENTRY, *PMEMLOG_ENTRY;
typedef struct _SHARED_LOG_FILE
{
DWORD nEntries;
DWORD cbLine;
DWORD iWrite;
} SHARED_LOG_FILE, *PSHARED_LOG_FILE;
#pragma warning(default:4200)
#ifdef DPNBUILD_LIBINTERFACE
extern PSHARED_LOG_FILE g_pMemLog;
#endif // DPNBUILD_LIBINTERFACE
#endif // _DPLAY_SHARED_MEMLOG_