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.

41 lines
756 B

  1. #include "precomp.h"
  2. #include "NmCtlDbg.h"
  3. #ifdef _DEBUG
  4. static PTCHAR _rgZones[] = {
  5. TEXT("NmCtl1"),
  6. TEXT("Warning"),
  7. TEXT("Trace"),
  8. TEXT("Function"),
  9. TEXT("AtlTrace")
  10. };
  11. bool MyInitDebugModule(void)
  12. {
  13. g_pcszSpewModule = _rgZones[0];
  14. DBGINIT(&ghDbgZone, _rgZones);
  15. return true;
  16. }
  17. void MyExitDebugModule(void)
  18. {
  19. g_pcszSpewModule = NULL;
  20. DBGDEINIT(&ghDbgZone);
  21. }
  22. void DbgZPrintAtlTrace(LPCTSTR pszFormat,...)
  23. {
  24. if (GETZONEMASK(ghDbgZone) & ZONE_ATLTRACE_FLAG)
  25. {
  26. va_list v1;
  27. va_start(v1, pszFormat);
  28. DbgPrintf(NULL, pszFormat, v1 );
  29. va_end(v1);
  30. }
  31. }
  32. #endif // _DEBUG