Source code of Windows XP (NT5)
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.

69 lines
904 B

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. faxsvc.c
  5. Abstract:
  6. This module contains the windows code for the
  7. FAX service debug window.
  8. Author:
  9. Wesley Witt (wesw) 28-Feb-1996
  10. Revision History:
  11. --*/
  12. #include "faxsvc.h"
  13. #pragma hdrstop
  14. int
  15. DebugService(
  16. VOID
  17. )
  18. /*++
  19. Routine Description:
  20. Starts the service in debug mode. In this mode the FAX service
  21. runs as a regular WIN32 process. This is implemented as an aid
  22. to debugging the service.
  23. Arguments:
  24. argc - argument count
  25. argv - argument array
  26. Return Value:
  27. Return code. Return zero for success, all other
  28. values indicate errors.
  29. --*/
  30. {
  31. ServiceDebug = TRUE;
  32. ConsoleDebugOutput = TRUE;
  33. return ServiceStart();
  34. }
  35. VOID
  36. ConsoleDebugPrint(
  37. LPTSTR buf
  38. )
  39. {
  40. if (ConsoleDebugOutput) {
  41. _tprintf( TEXT("%s\n"), buf );
  42. }
  43. }