DEBUG.H


/******************************************************************************\
* This is a part of the Microsoft Source Code Samples.
* Copyright 1992 - 1998 Microsoft Corporation.
* All rights reserved.
* This source code is only intended as a supplement to
* Microsoft Development Tools and/or WinHelp documentation.
* See these sources for detailed information regarding the
* Microsoft samples programs.
\******************************************************************************/

//+---------------------------------------------------------------------------
//
// File: debug.h
//
// Contents:
//
// Classes:
//
// Functions:
//
//----------------------------------------------------------------------------


#ifndef __DEBUG_H__
#define __DEBUG_H__

#if DBG

extern DWORD PopInfoLevel;

#define DebugLog(x) LogEvent x


void LogEvent(long, const char *, ...);
void InitDebugSupport(void);

#define DEB_ERROR 0x00000001
#define DEB_WARN 0x00000002
#define DEB_TRACE 0x00000004
#define DEB_TRACE_PROT 0x00000008

#else

#define DebugLog(x)
#define InitDebugSupport()


#endif



#endif // __DEBUG_H__