mirror of https://github.com/tongzx/nt5src
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.
73 lines
1.4 KiB
73 lines
1.4 KiB
//*************************************************************
|
|
//
|
|
// Debugging functions header file
|
|
//
|
|
// Microsoft Confidential
|
|
// Copyright (c) Microsoft Corporation 1995
|
|
// All rights reserved
|
|
//
|
|
//*************************************************************
|
|
|
|
|
|
|
|
//
|
|
// Debug Levels
|
|
//
|
|
|
|
#define DL_NONE 0x00000000
|
|
#define DL_NORMAL 0x00000001
|
|
#define DL_VERBOSE 0x00000002
|
|
#define DL_LOGFILE 0x00010000
|
|
#define DL_DEBUGGER 0x00020000
|
|
|
|
extern DWORD dwDebugLevel;
|
|
extern DWORD dwRsopLoggingLevel; // Rsop logging setting
|
|
|
|
|
|
//
|
|
// Debug message types
|
|
//
|
|
|
|
#define DM_WARNING 0
|
|
#define DM_ASSERT 1
|
|
#define DM_VERBOSE 2
|
|
|
|
|
|
//
|
|
// Debug macros
|
|
// To avoid certain unexpected problems DebugMsg is changed to this form.
|
|
// This will prevent compilation of the construct like "if (!test) DebugMsg(x); else ..."
|
|
// unless DebugMsg(x) is enclosed under curly braces.
|
|
//
|
|
|
|
#define DebugMsg(x) { if (dwDebugLevel != DL_NONE) { _DebugMsg x ; } }
|
|
|
|
|
|
//
|
|
// Debug function proto-types
|
|
//
|
|
|
|
|
|
void _DebugMsg(UINT mask, LPCTSTR pszMsg, ...);
|
|
|
|
|
|
#define SETUP_LOAD 1
|
|
#define WINLOGON_LOAD 2
|
|
void InitDebugSupport( DWORD dwLoadFlags );
|
|
|
|
|
|
#if DBG
|
|
|
|
#define DmAssert(x) if (!(x)) \
|
|
_DebugMsg(DM_ASSERT,TEXT("Userenv.dll assertion ") TEXT(#x) TEXT(" failed\n"));
|
|
|
|
#else
|
|
|
|
#define DmAssert(x)
|
|
|
|
#endif // DBG
|
|
|
|
#if defined(__cplusplus)
|
|
extern "C"
|
|
#endif
|
|
BOOL RsopLoggingEnabled();
|