The MODEMDEVCAPS structure contains information about the capabilities of a modem.
typedef struct modemdevcaps_tag {
DWORD dwActualSize; // size of returned data, in bytes
DWORD dwRequiredSize; // total size of structure
DWORD dwDevSpecificOffset; // offset of provider-defined data
DWORD dwDevSpecificSize; // size of provider-defined data
DWORD dwModemProviderVersion; // provider version number
DWORD dwModemManufacturerOffset; // offset of manufacturer name
DWORD dwModemManufacturerSize; // length of manufacturer name
DWORD dwModemModelOffset; // offset of model name
DWORD dwModemModelSize; // length of model name
DWORD dwModemVersionOffset; // offset of version name
DWORD dwModemVersionSize; // length of version name
DWORD dwDialOptions; // bitmap of supported values
DWORD dwCallSetupFailTimer; // maximum in seconds
DWORD dwInactivityTimeout; // maximum in tenths of seconds
DWORD dwSpeakerVolume; // bitmap of supported values
DWORD dwSpeakerMode; // bitmap of supported values
DWORD dwModemOptions; // bitmap of supported values
DWORD dwMaxDTERate; // maximum value in bit/s
DWORD dwMaxDCERate; // maximum value in bit/s
BYTE abVariablePortion [1]; // variable-length data
} MODEMDEVCAPS, *PMODEMDEVCAPS, *LPMODEMDEVCAPS;
Value | Meaning |
---|---|
DIALOPTION_DIALBILLING | Specifies that the modem supports waiting for billing tone (bong). |
DIALOPTION_DIALQUIET | Specifies that the modem supports waiting for quiet. |
DIALOPTION_DIALDIALTONE | Specifies that the modem supports waiting for a dial tone. |
Value | Meaning |
---|---|
MDMVOLFLAG_LOW | The modem supports low (MDMVOL_LOW) volume. |
MDMVOLFLAG_MEDIUM | The modem supports medium (MDMVOL_MEDIUM) volume. |
MDMVOLFLAG_HIGH | The modem supports high (MDMVOL_HIGH) volume. |
Value | Meaning |
---|---|
MDMSPKRFLAG_OFF | The modem supports the MDMSPKR_OFF speaker mode. |
MDMSPKRFLAG_DIAL | The modem supports the MDMSPKR_DIAL speaker mode. |
MDMSPKRFLAG_ON | The modem supports the MDMSPKR_ON speaker mode. |
MDMSPKRFLAG_CALLSETUP | The modem supports the MDMSPKR_CALLSETUP speaker mode. |
MDM_BLIND_DIAL | MDM_FLOWCONTROL_SOFT |
MDM_CCITT_OVERRIDE | MDM_FORCED_EC |
MDM_CELLULAR | MDM_SPEED_ADJUST |
MDM_COMPRESSION | MDM_TONE_DIAL |
MDM_ERROR_CONTROL | MDM_V23_OVERRIDE |
MDM_FLOWCONTROL_HARD |
When MODEMDEVCAPS is used to set modem options, as part of the MODEMSETTINGS structure, these values are used as follows:
Value | Meaning |
---|---|
MDM_CCITT_OVERRIDE | When set, CCITT modulations are enabled for V.21 and V.22 or V.23. When clear, bell modulations are enabled for 103 and 212A. |
MDM_V23_OVERRIDE | When set, CCITT modulations are enabled for V.23. When clear, CCITT modulations are enabled for V.21 and V.22. |
For V.23 to be set, both MDM_CCITT_OVERRIDE and MDM_V23_OVERRIDE must be set.
Windows NT: Requires version 4.0 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mcx.h.
Communications Overview, Communication Structures, MODEMSETTINGS