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.

37 lines
931 B

  1. /***********************************************************************
  2. *
  3. * DBGUTIL.CPP
  4. *
  5. * Debug utility functions
  6. *
  7. * Copyright 1992 - 1996 Microsoft Corporation. All Rights Reserved.
  8. *
  9. * Revision History:
  10. *
  11. * When Who What
  12. * -------- ------------------ ---------------------------------------
  13. * 11.13.95 Bruce Kelley Created
  14. *
  15. ***********************************************************************/
  16. #include <windows.h>
  17. #include "dbgutil.h"
  18. #define _DBGUTIL_CPP
  19. /*
  20. * DebugTrace -- printf to the debugger console or debug output file
  21. * Takes printf style arguments.
  22. * Expects newline characters at the end of the string.
  23. */
  24. VOID FAR CDECL DebugTrace(LPSTR lpszFmt, ...) {
  25. va_list marker;
  26. TCHAR String[1100];
  27. va_start(marker, lpszFmt);
  28. wvsprintf(String, lpszFmt, marker);
  29. OutputDebugString(String);
  30. }