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.

72 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. All rights reserved.
  4. Module Name:
  5. dbgstate.cxx
  6. Abstract:
  7. auto log
  8. Author:
  9. Larry Zhu (LZhu) December 6, 2001
  10. Revision History:
  11. --*/
  12. // #include "precomp.hxx"
  13. // #pragma hdrstop
  14. #include "dbgstate.hxx"
  15. #ifdef DBG
  16. TDbgGlobals g_DbgGlobals = {
  17. 0, // major version
  18. 0, // minor version
  19. NULL, // debug prompt
  20. };
  21. /********************************************************************
  22. some useful stuff
  23. ********************************************************************/
  24. #if 0
  25. VOID AutoLogOutputDebugStringPrintf(
  26. IN PCTSTR pszFmt,
  27. IN ...
  28. )
  29. {
  30. TCHAR szBuffer[4096] = {0};
  31. va_list pArgs;
  32. va_start(pArgs, pszFmt);
  33. _vsntprintf(szBuffer, COUNTOF(szBuffer), pszFmt, pArgs);
  34. OutputDebugString(szBuffer);
  35. va_end(pArgs);
  36. }
  37. VOID __cdecl
  38. DbgStateC2CppExceptionTransFunc(
  39. IN ULONG u,
  40. EXCEPTION_POINTERS* pExp
  41. )
  42. {
  43. throw u;
  44. }
  45. #endif
  46. #endif