2020-09-30 17:12:29 +02:00

74 lines
1.6 KiB
C

/*++ BUILD Version: 0001 // Increment this if a change has global effects
Copyright (c) 1990 Microsoft Corporation
Module Name:
memprint.h
Abstract:
Include file for in-memory DbgPrint function. Including this file
will change DbgPrints to a routine which puts the display text in a
circular buffer in memory. By default, the text is then sent to the
console via DbgPrint. By changing the value of the DigiPrintFlags
flag, however, the text may be routed to a file instead, thereby
significantly speeding up the DbgPrint operation.
Author:
David Treadwell (davidtr) 05-Oct-1990
Revision History:
--*/
#ifndef _MEMPRINT_
#define _MEMPRINT_
#define MEM_PRINT_FLAG_CONSOLE 0x00000001
#define MEM_PRINT_FLAG_FILE 0x00000002
#define MEM_PRINT_FLAG_HEADER 0x00000004
#define MEM_PRINT_FLAG_QUIT 0x00000008
#define MEM_PRINT_FLAG_NOMEMCHECK 0x80000000
extern ULONG DigiPrintFlags;
extern UCHAR TurnOffSniffer;
//
// Exported routines. MemPrintInitialize sets up the circular buffer
// and other memory, MemPrint writes text to the console and/or a
// log file, and MemPrintFlush writes the current subbuffer to disk
// whether or not it is full.
//
#if DBG
VOID MemPrintPreInitSettings( PCHAR NewLogFileName,
ULONG NewBufferSize );
NTSTATUS MemPrintInitialize ( VOID );
VOID MemPrintQuit ( VOID );
VOID MemPrint ( CHAR *Format, ... );
VOID MemPrintFlush ( VOID );
#define DbgPrint MemPrint
#else
#define MemPrintPreInitSettings( a, b )
#define MemPrintInitialize()
#define MemPrintQuit()
#define MemPrint()
#define MemPrintFlush()
#endif
#endif // def _MEMPRINT_