1 /***********************************************************************\ 2 * mcx.d * 3 * * 4 * Windows API header module * 5 * * 6 * Translated from MinGW Windows headers * 7 * by Stewart Gordon * 8 * * 9 * Placed into public domain * 10 \***********************************************************************/ 11 module win32.mcx; 12 version(Windows): 13 14 private import win32.windef; 15 16 const DWORD 17 DIALOPTION_BILLING = 64, 18 DIALOPTION_QUIET = 128, 19 DIALOPTION_DIALTONE = 256; 20 21 const DWORD 22 MDMVOLFLAG_LOW = 1, 23 MDMVOLFLAG_MEDIUM = 2, 24 MDMVOLFLAG_HIGH = 4; 25 26 enum : DWORD { 27 MDMVOL_LOW = 0, 28 MDMVOL_MEDIUM = 1, 29 MDMVOL_HIGH = 2 30 } 31 32 const DWORD 33 MDMSPKRFLAG_OFF = 1, 34 MDMSPKRFLAG_DIAL = 2, 35 MDMSPKRFLAG_ON = 4, 36 MDMSPKRFLAG_CALLSETUP = 8; 37 38 enum : DWORD { 39 MDMSPKR_OFF, 40 MDMSPKR_DIAL, 41 MDMSPKR_ON, 42 MDMSPKR_CALLSETUP 43 } 44 45 const DWORD 46 MDM_COMPRESSION = 0x0001, 47 MDM_ERROR_CONTROL = 0x0002, 48 MDM_FORCED_EC = 0x0004, 49 MDM_CELLULAR = 0x0008, 50 MDM_FLOWCONTROL_HARD = 0x0010, 51 MDM_FLOWCONTROL_SOFT = 0x0020, 52 MDM_CCITT_OVERRIDE = 0x0040, 53 MDM_SPEED_ADJUST = 0x0080, 54 MDM_TONE_DIAL = 0x0100, 55 MDM_BLIND_DIAL = 0x0200, 56 MDM_V23_OVERRIDE = 0x0400; 57 58 struct MODEMDEVCAPS { 59 DWORD dwActualSize; 60 DWORD dwRequiredSize; 61 DWORD dwDevSpecificOffset; 62 DWORD dwDevSpecificSize; 63 DWORD dwModemProviderVersion; 64 DWORD dwModemManufacturerOffset; 65 DWORD dwModemManufacturerSize; 66 DWORD dwModemModelOffset; 67 DWORD dwModemModelSize; 68 DWORD dwModemVersionOffset; 69 DWORD dwModemVersionSize; 70 DWORD dwDialOptions; 71 DWORD dwCallSetupFailTimer; 72 DWORD dwInactivityTimeout; 73 DWORD dwSpeakerVolume; 74 DWORD dwSpeakerMode; 75 DWORD dwModemOptions; 76 DWORD dwMaxDTERate; 77 DWORD dwMaxDCERate; 78 BYTE _abVariablePortion; 79 80 BYTE* abVariablePortion() { return &_abVariablePortion; } 81 } 82 alias MODEMDEVCAPS* PMODEMDEVCAPS, LPMODEMDEVCAPS; 83 84 struct MODEMSETTINGS { 85 DWORD dwActualSize; 86 DWORD dwRequiredSize; 87 DWORD dwDevSpecificOffset; 88 DWORD dwDevSpecificSize; 89 DWORD dwCallSetupFailTimer; 90 DWORD dwInactivityTimeout; 91 DWORD dwSpeakerVolume; 92 DWORD dwSpeakerMode; 93 DWORD dwPreferredModemOptions; 94 DWORD dwNegotiatedModemOptions; 95 DWORD dwNegotiatedDCERate; 96 BYTE _abVariablePortion; 97 98 BYTE* abVariablePortion() { return &_abVariablePortion; } 99 } 100 alias MODEMSETTINGS* PMODEMSETTINGS, LPMODEMSETTINGS;