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.

109 lines
2.7 KiB

  1. #ifdef DEFINE_MDMCMDS
  2. CBSZ cbszAT = "AT\r";
  3. CBSZ cbszHANGUP = "ATH0\r";
  4. CBSZ cbszANSWER = "ATA\r";
  5. CBSZ cbszDIAL = "ATD%c %s\r";
  6. CBSZ cbszDIAL_EXT = "ATX%cD%c %s%s\r";
  7. CBSZ cbszS8 = "S8=%d";
  8. CBSZ cbszXn = "X%d";
  9. CBSZ cbszLn = "L%d";
  10. CBSZ cbszMn = "M%d";
  11. CBSZ cbszJustAT = "AT";
  12. CBSZ cbszOK = "OK";
  13. CBSZ cbszCONNECT = "CONNECT";
  14. CBSZ cbszRING = "RING";
  15. CBSZ cbszNOCARRIER = "NO CARRIER";
  16. CBSZ cbszERROR = "ERROR";
  17. CBSZ cbszBLACKLISTED = "BLACKLISTED";
  18. CBSZ cbszDELAYED = "DELAYED";
  19. CBSZ cbszNODIALTONE = "NO DIAL"; // Was NO DIALTONE. Changed to fix
  20. // Elliot Bug#2009: USR28 and USR14
  21. // modems return NO DIAL TONE instead
  22. // of NO DIALTONE.
  23. CBSZ cbszBUSY = "BUSY";
  24. CBSZ cbszNOANSWER = "NO ANSWER";
  25. CBSZ cbszFCERROR = "+FCERROR";
  26. CBSZ cbszGO_CLASS0 = "AT+FCLASS=0\r";
  27. CBSZ cbszGO_CLASS1 = "AT+FCLASS=1\r";
  28. CBSZ cbszGO_CLASS2 = "AT+FCLASS=2\r";
  29. CBSZ cbszGO_CLASS2_0 = "AT+FCLASS=2.0\r";
  30. CBSZ cbszGET_CLASS = "AT+FCLASS?\r";
  31. CBPSTR rgcbpstrGO_CLASS[] =
  32. { cbszGO_CLASS0,
  33. cbszGO_CLASS1,
  34. cbszGO_CLASS2,
  35. cbszGO_CLASS2_0
  36. };
  37. USHORT uLenGO_CLASS[] =
  38. {
  39. sizeof(cbszGO_CLASS0)-1,
  40. sizeof(cbszGO_CLASS1)-1,
  41. sizeof(cbszGO_CLASS2)-1,
  42. sizeof(cbszGO_CLASS2_0)-1,
  43. };
  44. CBSZ cbszQUERY_CLASS = "AT+FCLASS=?\r";
  45. CBSZ cbszQUERY_FTH = "AT+FTH=?\r";
  46. CBSZ cbszQUERY_FTM = "AT+FTM=?\r";
  47. CBSZ cbszQUERY_FRH = "AT+FRH=?\r";
  48. CBSZ cbszQUERY_FRM = "AT+FRM=?\r";
  49. CBSZ cbszQUERY_S1 = "ATS1?\r";
  50. #else
  51. extern CBSZ cbszAT;
  52. extern CBSZ cbszHANGUP;
  53. extern CBSZ cbszANSWER;
  54. extern CBSZ cbszDIAL;
  55. extern CBSZ cbszDIAL_EXT;
  56. extern CBSZ cbszS8;
  57. extern CBSZ cbszXn;
  58. extern CBSZ cbszLn;
  59. extern CBSZ cbszMn;
  60. extern CBSZ cbszJustAT;
  61. extern CBSZ cbszOK;
  62. extern CBSZ cbszCONNECT;
  63. extern CBSZ cbszRING;
  64. extern CBSZ cbszNOCARRIER;
  65. extern CBSZ cbszERROR;
  66. extern CBSZ cbszNODIALTONE;
  67. extern CBSZ cbszBUSY;
  68. extern CBSZ cbszNOANSWER;
  69. extern CBSZ cbszFCERROR;
  70. extern CBSZ cbszGO_CLASS0;
  71. extern CBSZ cbszGO_CLASS1;
  72. extern CBSZ cbszGO_CLASS2;
  73. extern CBSZ cbszGO_CLASS2_0;
  74. extern CBSZ cbszGET_CLASS;
  75. extern CBPSTR rgcbpstrGO_CLASS[];
  76. extern USHORT uLenGO_CLASS[];
  77. extern CBSZ cbszQUERY_CLASS;
  78. extern CBSZ cbszQUERY_FTH;
  79. extern CBSZ cbszQUERY_FTM;
  80. extern CBSZ cbszQUERY_FRH;
  81. extern CBSZ cbszQUERY_FRM;
  82. extern CBSZ cbszQUERY_S1;
  83. #endif