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.

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