Leaked source code of windows server 2003
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.
|
|
#include "precomp.h"
#include "NmCtlDbg.h"
#ifdef _DEBUG
static PTCHAR _rgZones[] = { TEXT("NmCtl1"), TEXT("Warning"), TEXT("Trace"), TEXT("Function"), TEXT("AtlTrace") };
bool MyInitDebugModule(void) { g_pcszSpewModule = _rgZones[0]; DBGINIT(&ghDbgZone, _rgZones); return true; }
void MyExitDebugModule(void) { g_pcszSpewModule = NULL; DBGDEINIT(&ghDbgZone); }
void DbgZPrintAtlTrace(LPCTSTR pszFormat,...) { if (GETZONEMASK(ghDbgZone) & ZONE_ATLTRACE_FLAG) { va_list v1; va_start(v1, pszFormat); DbgPrintf(NULL, pszFormat, v1 ); va_end(v1); } }
#endif // _DEBUG
|