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.

41 lines
1.0 KiB

  1. /********************** Module Header **************************************
  2. * code.c
  3. * Code required for OKI 9 pin printers. The bit order needs
  4. * swapping, and any ETX char needs to be sent twice.
  5. *
  6. * HISTORY:
  7. * 15:26 on Fri 10 Jan 1992 -by- Lindsay Harris [lindsayh]
  8. * Created it.
  9. *
  10. * Ported to NT5 on Weds 29 Oct 1997 -by- Philip Lee [philipl]
  11. *
  12. * Copyright (C) 1999 Microsoft Corporation.
  13. *
  14. **************************************************************************/
  15. char *rgchModuleName = "OKI9RES";
  16. /*
  17. * This printer requires sending the ETX character (0x03) twice to send
  18. * just one - so we define the following to select that byte.
  19. */
  20. #define RPT_CHAR 0x03
  21. #define SZ_LBUF 128 /* Size of local copying buffer */
  22. /*
  23. * The bit flipping table is common to several drivers, so it is
  24. * included here. It's definition is as a static.
  25. */
  26. static const BYTE FlipTable[ 256 ] =
  27. {
  28. #include "fliptab.h"
  29. };
  30. #define _GET_FUNC_ADDR 1