Source code of Windows XP (NT5)
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.

73 lines
2.1 KiB

  1. #ifndef _NCUPARAMS_
  2. #define _NCUPARAMS_
  3. // initial defaults for all settings in braces at end
  4. typedef struct {
  5. USHORT uSize; // of this structure
  6. SHORT DialtoneTimeout;// how long to wait for dial tone (secs) [30]
  7. SHORT AnswerTimeout; // how long to wait for callee to pick up phone (secs) [60]
  8. SHORT DialPauseTime; // how long to pause for a pause/comma (secs) [2]
  9. SHORT FlashTime; // how long to go off hook for flash (secs) [1]
  10. SHORT RingsBeforeAnswer; // 0 to N [0]
  11. char chDialModifier; // 'T'==tone 'P'==pulse
  12. SHORT DialBlind; // T/F (dial w/o waiting for dialtone) [0]
  13. SHORT SpeakerVolume; // 0 to 3 [1]
  14. SHORT SpeakerControl; // 0=off 1=on during dial 2=on always [1];
  15. SHORT SpeakerRing; // T/F (generate audible ring on incoming calls NYI) [0]
  16. USHORT uOEMExtra; // set to 0
  17. }
  18. NCUPARAMS, far* LPNCUPARAMS;
  19. // MODEM SPECIFIC INFORMATION
  20. // +++ NOTE: 4/9/95 JosephJ: The name CMDTAB is out-of-date -- it contains more
  21. // than just command-strings. It includes such modem-specific info as port-
  22. // speed, whether to the modem (if class1) sends no-FCS after a frame, etc.
  23. // So think about changing this name to something like MDMSP_INFO.
  24. enum
  25. {
  26. // GENERAL
  27. fMDMSP_ANS_GOCLASS_TWICE = (0x1<<0), // Try AT+FCLASS=1/2 TWICE on
  28. // answer, to get around clash with
  29. // incoming RING.
  30. // If NOT set, just do this once,
  31. // as in WFW 3.11.
  32. // CLASS1-SPECIFIC
  33. fMDMSP_C1_NO_SYNC_IF_CMD = (0x1<<8), // Do not send sync-command (AT)
  34. // if modem is already in command
  35. // State (To fix AT14 bug (Elliot
  36. // bug#2907) -- which returns
  37. // ERROR to AT+FTH=3 after AT
  38. fMDMSP_C1_FCS_NO = (0x1<<9), // No FCS after frame.
  39. fMDMSP_C1_FCS_YES_BAD = (0x1<<10) // Bad FCS after frame.
  40. // If neither flag specified,
  41. // driver will try to determine
  42. // on-the-fly.
  43. };
  44. typedef struct
  45. {
  46. LPSTR szReset;
  47. LPSTR szSetup;
  48. LPSTR szExit;
  49. LPSTR szPreDial;
  50. LPSTR szPreAnswer;
  51. DWORD dwSerialSpeed;
  52. DWORD dwFlags; // One-or-more fMDMSP_* flags defined above.
  53. }
  54. CMDTAB, FAR* LPCMDTAB;
  55. #endif //_NCUPARAMS_