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.

19 lines
347 B

  1. #include "precomp.h"
  2. #include "dutils.h"
  3. #include <stdio.h>
  4. void Trace(LPCTSTR szFormat, ...)
  5. {
  6. va_list ap;
  7. TCHAR szMessage[512];
  8. va_start(ap, szFormat);
  9. StringCchVPrintf(szMessage, 512, szFormat, ap);
  10. va_end(ap);
  11. StringCchCat(szMessage,512,TEXT("\n"));
  12. OutputDebugString(szMessage);
  13. }