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.

50 lines
1.3 KiB

  1. #ifndef _PROTPARAMS_
  2. #define _PROTPARAMS_
  3. // initial defaults for all settings in braces at end
  4. typedef struct
  5. {
  6. USHORT uSize; // size of this structure
  7. SHORT HighestSendSpeed; // 2400/4800/7200/9600/12000/14400 [0 == highest avail]
  8. SHORT LowestSendSpeed; // 2400/4800/7200/9600/12000/14400 [0 == lowest avail]
  9. SHORT HighestRecvSpeed; // 2400/4800/7200/9600/12000/14400 [0 == highest avail]
  10. BOOL fEnableV17Send; // enable V17 (12k/14k) send speeds [1]
  11. BOOL fEnableV17Recv; // enable V17 (12k/14k) recv speeds [1]
  12. USHORT uMinScan; // determined by printer speed [MINSCAN_0_0_0]
  13. DWORD RTNNumOfRetries; // Count the number of retries of the same page (in case we get RTN)
  14. // This value is set to zero per-page.
  15. }
  16. PROTPARAMS, far* LPPROTPARAMS;
  17. #define MINSCAN_0_0_0 7
  18. #define MINSCAN_5_5_5 1
  19. #define MINSCAN_10_10_10 2
  20. #define MINSCAN_20_20_20 0
  21. #define MINSCAN_40_40_40 4
  22. #define MINSCAN_40_20_20 5
  23. #define MINSCAN_20_10_10 3
  24. #define MINSCAN_10_5_5 6
  25. // #define MINSCAN_0_0_? 15 // illegal
  26. // #define MINSCAN_5_5_? 9 // illegal
  27. #define MINSCAN_10_10_5 10
  28. #define MINSCAN_20_20_10 8
  29. #define MINSCAN_40_40_20 12
  30. #define MINSCAN_40_20_10 13
  31. #define MINSCAN_20_10_5 11
  32. // #define MINSCAN_10_5_? 14 // illegal
  33. #endif //_PROTPARAMS_