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
50 lines
1.3 KiB
/*==========================================================================
|
|
*
|
|
* 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_
|
|
|
|
// Max string length (in bytes) for MEM logging
|
|
#define DPLOG_MAX_STRING (512 * sizeof(TCHAR))
|
|
// Default number of entries for mem log. Adjustable from win.ini
|
|
#define DPLOG_DEFAULT_ENTRIES 40000
|
|
|
|
#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_
|