Originally posted by: Tutankhamen
Hi!
subj... I need to retrieve information about current dial-up connection (i.e. connection duration, connection speed, received/sended bytes), etc ... I look for information in TAPI help, but I found nothing ;(...
ReplyOriginally posted by: Zahid Naseer
Thanks for the code as I needed it badly for my exams.
ReplyOriginally posted by: paras shah
How to MUTE the Modem Speaker??
ReplyOriginally posted by: David
i.e) standard 14400, etc is not retrieved
const CString CModemInfo::GetModemInitString( const CString strName, const int nSpeakerVolume ) const
CString sBaseKey = GetModemRegistrySection( GetModemIndex( strName ) ) ;
CString strCallSetupFailTimer = GetProfileString( strKey, "CallSetupFailTimer", "", HKEY_LOCAL_MACHINE );
CString strInactivityTimeout = GetProfileString( strKey, "InactivityTimeout", "", HKEY_LOCAL_MACHINE );
strInit += strCallSetupFailTimer + strInactivityTimeout;
if ( nSpeakerVolume != -1 && GetModemHasSpeaker( strName ) )
switch ( nSpeakerVolume )
if ( strInit == "AT" )
}
return strInit;// + "<cr>";
here is the small fix to the excellent class CModemInfo
I found a case were the initstring of a standard modem types
I first though this was a windowsME issue but it is not
{
CString strInit = "AT";
CString strKey = sBaseKey + "\\Settings";
strCallSetupFailTimer.Replace( "<#>", "60" );
strInactivityTimeout.Replace( "<#>", "0" );
{
const int nNumVolumeLevels = GetModemVolumeLevelsCount( strName );
const CString strSpeakerOn = GetProfileString( GetModemRegistrySection( GetModemIndex( strName ) ) + "\\Settings", "SpeakerMode_Dial", "", HKEY_LOCAL_MACHINE );
{
case 0:
strInit += GetProfileString( strKey, "SpeakerMode_OFF", "", HKEY_LOCAL_MACHINE );
break;
case 1:
strInit += nNumVolumeLevels == 0 ? strSpeakerOn : GetProfileString( strKey, "SpeakerVolume_Low", "", HKEY_LOCAL_MACHINE ) + strSpeakerOn;
break;
case 2:
strInit += nNumVolumeLevels > 0 ? GetProfileString( strKey, "SpeakerVolume_Med", "", HKEY_LOCAL_MACHINE ) + strSpeakerOn : "";
break;
case 3:
strInit += nNumVolumeLevels > 0 ? GetProfileString( strKey, "SpeakerVolume_High", "", HKEY_LOCAL_MACHINE ) + strSpeakerOn : "";
break;
default:
ASSERT( FALSE );
}
}
strInit += GetProfileString( strKey, "ErrorControl_On", "", HKEY_LOCAL_MACHINE );
strInit += GetProfileString( strKey, "Compression_On", "", HKEY_LOCAL_MACHINE );
strInit += GetProfileString( strKey, "FlowControl_Hard", "", HKEY_LOCAL_MACHINE );
strInit += GetProfileString( strKey, "Modulation_CCITT", "", HKEY_LOCAL_MACHINE );
strInit += GetProfileString( strKey, "Blind_Off", "", HKEY_LOCAL_MACHINE );
{// Modem may be Stardard Modem Type
CString sAltKey = sBaseKey;
sAltKey += "\\Init";
strInit = GetProfileString(sAltKey, "2", "",HKEY_LOCAL_MACHINE);
strInit.Replace("<cr>","");
}
Originally posted by: Shamit Verma
Can someone tell me abt a C++ Class tah can handle TAPI Connections (Outgoing) and Play .wav files over a telephone line.
ReplyOriginally posted by: Mohammed Rana Basheer
My machine is connected to the internet through a dial up
line. It is also connected to a LAN network. Currently all
other machines in the local network access the internet through a proxy server running in my machine.
Is it possible for 'gethostbyname' to retreive the ip my machine got when it connected to the internet through PPP protocol.
If possible how is it possible to find that the ip correspond to PPP protocol or how is it possible to find that a particular ip corresponds to local intranet and not the ip supplied through dial up.
I want to list the ip's and also list whether it is local intranet or theough dial up.
Originally posted by: Syril jude
I am a M.C.A final year student , having a doubt in opening the COM port, dialing the modem, transmitting the data through the established link & getting the acknowlegdement from the destination. Kindly help me with the source code for the above mention in C/C++ (DOS). I would me grateful if I get the source code as early as possible.
Reply