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.

89 lines
2.8 KiB

  1. #define IDSIZE 20
  2. #define MFR_SIZE 80
  3. #define RESPONSE_BUF_SIZE 300
  4. typedef enum {
  5. PCB_SEND_CAPS,
  6. PCB_SEND_PARAMS,
  7. PCB_RECV_PARAMS
  8. } PCBTYPE;
  9. typedef struct {
  10. BYTE Resolution; // one or more of the RES_ #defines below
  11. BYTE Encoding; // one or more of the ENCODE_ #defines below
  12. BYTE PageWidth; // one of the WIDTH_ #defines below
  13. BYTE PageLength; // one of the LENGTH_ #defines below
  14. BYTE MinScan; // one of the MINSCAN_ #defines below
  15. // used only in RecvCaps
  16. CHAR szID[IDSIZE+2]; // Must use '0' to '9' or ' '(space) only
  17. BOOL fBinary; // accepts binary files inside linearized EFAX messages
  18. BYTE Baud;
  19. } PCB, far* LPPCB, near* NPPCB;
  20. // Array to hold parsed class2 command strings.
  21. #define MAX_CLASS2_COMMANDS 10
  22. #define MAX_PARAM_LENGTH 50
  23. typedef struct cl2_command {
  24. USHORT comm_count;
  25. BYTE command[MAX_CLASS2_COMMANDS];
  26. BYTE parameters[MAX_CLASS2_COMMANDS][MAX_PARAM_LENGTH];
  27. } CL2_COMM_ARRAY;
  28. // structure for modem specific hacks
  29. typedef struct {
  30. // Fields for manufacturer, model, and revision number
  31. CHAR szMFR[MFR_SIZE];
  32. CHAR szMDL[MFR_SIZE];
  33. //Fields for specific actions to take
  34. //BOR values to use
  35. USHORT iReceiveBOR;
  36. USHORT iSendBOR;
  37. //Value to enable data to be recieved after FDR
  38. CHAR szDC2[2];
  39. BOOL bIsSierra;
  40. BOOL bIsExar;
  41. BOOL fSkipCtrlQ; // DONT wait for CtrlQ after FDT
  42. BOOL fSWFBOR; // Implement AT+FBOR=1 in software (i.e., bitreverse)
  43. // Only invoked on send(recv) if iSendBOR(iRecvBOR)
  44. // is 1 (in which it will send AT+FBOR=0).
  45. } MFRSPEC, far *LPMFRSPEC;
  46. /**-------------------- from MODEM.H -----------------------------**/
  47. typedef char C2SZ;
  48. typedef char *C2PSTR;
  49. /**-------------------- from COMMODEM.H -----------------------------**/
  50. #define MAXPHONESIZE 512
  51. #define DIALBUFSIZE MAXPHONESIZE + 10
  52. /**-------------------- modelled after MODEMINT.H -----------------------------**/
  53. // used for Resync type stuff. RepeatCount = 2
  54. // This has to be multi-line too, because echo could be on and
  55. // we could get the command echoed back instead of response!
  56. // Looks like even 330 is too short for some modems..
  57. #define Class2SyncModemDialog(pTG, s, l, w) \
  58. Class2iModemDialog(pTG, (s), (l), 550, 2, TRUE, (C2PSTR)(w), (C2PSTR)(NULL))