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.

34 lines
961 B

  1. /*
  2. File radebug.h
  3. Rasauto debugging header
  4. */
  5. #ifndef __RASAUTO_DEBUG_H
  6. #define __RASAUTO_DEBUG_H
  7. #include <debug.h>
  8. // Tracing macros
  9. //
  10. extern DWORD g_dwRasAutoTraceId;
  11. DWORD
  12. RasAutoDebugInit();
  13. DWORD
  14. RasAutoDebugTerm();
  15. #define RASAUTO_TRACESTRA(s) ((s) != NULL ? (s) : "(null)")
  16. #define RASAUTO_TRACESTRW(s) ((s) != NULL ? (s) : L"(null)")
  17. #define RASAUTO_TRACE(a) TRACE_ID(g_dwRasAutoTraceId, a)
  18. #define RASAUTO_TRACE1(a,b) TRACE_ID1(g_dwRasAutoTraceId, a,b)
  19. #define RASAUTO_TRACE2(a,b,c) TRACE_ID2(g_dwRasAutoTraceId, a,b,c)
  20. #define RASAUTO_TRACE3(a,b,c,d) TRACE_ID3(g_dwRasAutoTraceId, a,b,c,d)
  21. #define RASAUTO_TRACE4(a,b,c,d,e) TRACE_ID4(g_dwRasAutoTraceId, a,b,c,d,e)
  22. #define RASAUTO_TRACE5(a,b,c,d,e,f) TRACE_ID5(g_dwRasAutoTraceId, a,b,c,d,e,f)
  23. #define RASAUTO_TRACE6(a,b,c,d,e,f,g) TRACE_ID6(g_dwRasAutoTraceId, a,b,c,d,e,f,g)
  24. #endif