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.

26 lines
1.0 KiB

  1. #include "stdhdr.h"
  2. #include \
  3. /*******************************************************************************
  4. * *
  5. * This source file is merely a reference to the file included in it, in order*
  6. * to overcome razzle inability to specify files in an ancestral directory *
  7. * rather than the parent directory. For complete documentation of *
  8. * functionality refer to */ "..\..\..\faxtiff.c" /*
  9. * *
  10. *******************************************************************************/
  11. //
  12. // Statically override implementaion of WritePrinter to redirect output to a
  13. // file rather then to a printer.
  14. //
  15. static BOOL _inline WINAPI
  16. WritePrinter(
  17. IN HANDLE hPrinter,
  18. IN LPVOID pBuf,
  19. IN DWORD cbBuf,
  20. OUT LPDWORD pcWritten
  21. )
  22. {
  23. return WriteFile(hPrinter,pBuf,cbBuf,pcWritten,NULL);
  24. }