Re: How save modem configuration correctly

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Grant Schenck (schenckg_at_optonline.net)
Date: 03/26/04


Date: Fri, 26 Mar 2004 13:04:39 -0500

Couple of possible ways but the most straight forward is probably to
use the line's LINEDEVCAPS' dwPermanentLineID. Then, everytime you
start, use lineGetDevCaps() to retrieve the dwPermanentLineID from the
LINEDEVCAPS and compare it to the dwPermanentLineID you previously
associated with a modem's configuration.

--
Grant Schenck
Grant Schenck Software
schenckg@optonline.net
http://grantschenck.tripod.com
"pozz" <pNoOzSzPuAgMno@libero.it> wrote in message
news:SwZ8c.91387$Kc3.2954893@twister2.libero.it...
> Hi all,
>
> after initializing TAPI 2.1 (with lineInitializeEx() hidden window
method),
> the user choose a modem device (capable of datamode calls),
configure it
> (lineConfigDialog) and application stores that configuration in a
file,
> with the device number.
> It works well normally, but what happens if user removes or adds
other
> modem drivers in the operating systems?
>
> Suppose I initially have modem1 and modem2 with device number 0 and
1.
> User choose modem2, configure it and I store that infos (device
number
> 1 with configuration retrieved with lineGetConfig).
> Later user removes modem1 device from operating system, remaining
only
> one device, modem2.
> But now modem2 is TAPI device number 0 and configuration stored in
> the application file is wrong.
>
> How can I save modem configuration in a file linking it with the
device
> and not with the device number that can change in the future?
>
>
>


Relevant Pages

  • Re: Problems with Kmail
    ... to refusing the connection during authentication. ... the account, I still could not retrieve mail (yes, this was on the ... had to go into the KMail account configuration and re-enter the password. ...
    (alt.os.linux.suse)
  • Re: Class usable from all other class
    ... I create a class to manage configuration. ... > And want to have a constructor (so impossible to have statict method) ... > I don't want to have a static method that allways read configuration ... > files to retrieve a parameter. ...
    (microsoft.public.dotnet.languages.csharp)
  • Class usable from all other class
    ... I create a class to manage configuration. ... For this, I have a constructor that create a dataset with all my parameters, ... And want to have a constructor (so impossible to have statict method) to ... retrieve all parameters. ...
    (microsoft.public.dotnet.languages.csharp)
  • UPDATE - RE: Manually installing a TSP?
    ... removed the password from the TSP configuration everything worked fine. ... > lineInitializeEx, lineNegotiateAPIVersion, and lineGetDevCaps()) it's as if ... > I've run their respective installs multiple times with no luck. ...
    (microsoft.public.win32.programmer.tapi)
  • Re: ConfigurationManager, user settings and application settings
    ... 1 to retrieve from Application Data folder ... > data should be under the application's installation directory. ... > user configuration or per application. ...
    (microsoft.public.dotnet.framework)