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.

32 lines
480 B

  1. /*++
  2. Copyright (c) 1998-99 Microsoft Corporation
  3. Module Name:
  4. debug.c
  5. Abstract:
  6. Notes:
  7. --*/
  8. #include <windows.h>
  9. #include <windowsx.h>
  10. #include <io.h>
  11. #include <malloc.h>
  12. #include <string.h>
  13. #if DBG
  14. void __cdecl dprintf(LPTSTR szFormat, ...) {
  15. static TCHAR tmpStr[1024];
  16. va_list marker;
  17. va_start(marker, szFormat);
  18. wvsprintf(tmpStr, szFormat, marker);
  19. OutputDebugString(tmpStr);
  20. va_end(marker);
  21. } // dprintf
  22. #endif