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.

101 lines
3.7 KiB

  1. /************************************************************************
  2. * *
  3. * mcx.h -- This module defines the 32-Bit Windows MCX APIs *
  4. * *
  5. * Copyright (c) 1990-1994, Microsoft Corp. All rights reserved. *
  6. * *
  7. ************************************************************************/
  8. #ifndef _MCX_H_
  9. #define _MCX_H_
  10. typedef struct _MODEMDEVCAPS {
  11. DWORD dwActualSize;
  12. DWORD dwRequiredSize;
  13. DWORD dwDevSpecificOffset;
  14. DWORD dwDevSpecificSize;
  15. // product and version identification
  16. DWORD dwModemProviderVersion;
  17. DWORD dwModemManufacturerOffset;
  18. DWORD dwModemManufacturerSize;
  19. DWORD dwModemModelOffset;
  20. DWORD dwModemModelSize;
  21. DWORD dwModemVersionOffset;
  22. DWORD dwModemVersionSize;
  23. // local option capabilities
  24. DWORD dwDialOptions; // bitmap of supported values
  25. DWORD dwCallSetupFailTimer; // maximum in seconds
  26. DWORD dwInactivityTimeout; // maximum in deciseconds
  27. DWORD dwSpeakerVolume; // bitmap of supported values
  28. DWORD dwSpeakerMode; // bitmap of supported values
  29. DWORD dwModemOptions; // bitmap of supported values
  30. DWORD dwMaxDTERate; // maximum value in bit/s
  31. DWORD dwMaxDCERate; // maximum value in bit/s
  32. // Variable portion for proprietary expansion
  33. BYTE abVariablePortion [1];
  34. } MODEMDEVCAPS, *PMODEMDEVCAPS, *LPMODEMDEVCAPS;
  35. typedef struct _MODEMSETTINGS {
  36. DWORD dwActualSize;
  37. DWORD dwRequiredSize;
  38. DWORD dwDevSpecificOffset;
  39. DWORD dwDevSpecificSize;
  40. // static local options (read/write)
  41. DWORD dwCallSetupFailTimer; // seconds
  42. DWORD dwInactivityTimeout; // deciseconds
  43. DWORD dwSpeakerVolume; // level
  44. DWORD dwSpeakerMode; // mode
  45. DWORD dwPreferredModemOptions; // bitmap
  46. // negotiated options (read only) for current or last call
  47. DWORD dwNegotiatedModemOptions; // bitmap
  48. DWORD dwNegotiatedDCERate; // bit/s
  49. // Variable portion for proprietary expansion
  50. BYTE abVariablePortion [1];
  51. } MODEMSETTINGS, *PMODEMSETTINGS, *LPMODEMSETTINGS;
  52. // Dial Options
  53. #define DIALOPTION_BILLING 0x00000040 // Supports wait for bong "$"
  54. #define DIALOPTION_QUIET 0x00000080 // Supports wait for quiet "@"
  55. #define DIALOPTION_DIALTONE 0x00000100 // Supports wait for dial tone "W"
  56. // SpeakerVolume for MODEMDEVCAPS
  57. #define MDMVOLFLAG_LOW 0x00000001
  58. #define MDMVOLFLAG_MEDIUM 0x00000002
  59. #define MDMVOLFLAG_HIGH 0x00000004
  60. // SpeakerVolume for MODEMSETTINGS
  61. #define MDMVOL_LOW 0x00000000
  62. #define MDMVOL_MEDIUM 0x00000001
  63. #define MDMVOL_HIGH 0x00000002
  64. // SpeakerMode for MODEMDEVCAPS
  65. #define MDMSPKRFLAG_OFF 0x00000001
  66. #define MDMSPKRFLAG_DIAL 0x00000002
  67. #define MDMSPKRFLAG_ON 0x00000004
  68. #define MDMSPKRFLAG_CALLSETUP 0x00000008
  69. // SpeakerMode for MODEMSETTINGS
  70. #define MDMSPKR_OFF 0x00000000
  71. #define MDMSPKR_DIAL 0x00000001
  72. #define MDMSPKR_ON 0x00000002
  73. #define MDMSPKR_CALLSETUP 0x00000003
  74. // Modem Options
  75. #define MDM_COMPRESSION 0x00000001
  76. #define MDM_ERROR_CONTROL 0x00000002
  77. #define MDM_FORCED_EC 0x00000004
  78. #define MDM_CELLULAR 0x00000008
  79. #define MDM_FLOWCONTROL_HARD 0x00000010
  80. #define MDM_FLOWCONTROL_SOFT 0x00000020
  81. #define MDM_CCITT_OVERRIDE 0x00000040
  82. #define MDM_SPEED_ADJUST 0x00000080
  83. #define MDM_TONE_DIAL 0x00000100
  84. #define MDM_BLIND_DIAL 0x00000200
  85. #endif /* _MCX_H_ */