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.

65 lines
857 B

  1. /*++
  2. Copyright (c) 1996-1997 Microsoft Corporation
  3. Module Name:
  4. DEBUG.CPP
  5. Abstract:
  6. This is the debugging output
  7. Author:
  8. Vlad Sadovsky (vlads) 12-20-96
  9. Revision History:
  10. --*/
  11. #include "precomp.h"
  12. #include "stiexe.h"
  13. #include "resource.h"
  14. void
  15. __cdecl
  16. StiMonWndDisplayOutput(
  17. LPTSTR pString,
  18. ...
  19. )
  20. {
  21. va_list list;
  22. va_start(list,pString);
  23. vStiMonWndDisplayOutput(pString,list);
  24. va_end(list);
  25. }
  26. void
  27. __cdecl
  28. vStiMonWndDisplayOutput(
  29. LPTSTR pString,
  30. va_list arglist
  31. )
  32. {
  33. if(g_fServiceInShutdown || !g_hLogWindow) {
  34. return;
  35. }
  36. TCHAR Buffer[512];
  37. INT iIndex;
  38. LRESULT lRet;
  39. ULONG_PTR dwResult = 0;
  40. wvsprintf(Buffer,pString,arglist);
  41. DBG_TRC(("As MONUI: %s",Buffer));
  42. }