Re: getting provider list

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

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


Date: Mon, 4 Oct 2004 11:35:15 -0400

If you are willing to open the line then you can call
lineGetID(..."tapi/providerID") to retrieve the permanent provider ID
of a specific line. This will allow you to determine which TSP
retrieved from lineGetProviderList() is hosting the specific line and
to display the provider string for a given provider.

--
Grant Schenck
Grant Schenck Software
schenckg@optonline.net
http://grantschenck.tripod.com
"Andreas Marschall [MVP TAPI]" <Andreas.Marschall@I-B-A-M.de> wrote in
message news:eMXlPYTqEHA.596@TK2MSFTNGP11.phx.gbl...
> "Luis Miguel" <lm.rodriguez@ya.com> schrieb im Newsbeitrag
> news:91cf1627.0410030223.14e36e16@posting.google.com...
> > I'm trying to get the string providers list as show the Windows
> > Control Panel. Filling a LINEPROVIDERLIST structure I can get the
> > dwPermanentProviderID, dwProviderFilenameSize,
> > dwProviderFilenameOffset fields of each LINEPROVIDERENTRY entry,
but
> > it doesn't cointain the provider string name as in  LINEDEVCAPS
> > structure (dwProviderInfoSize-dwProviderInfoOffset) associated to
a
> > line.
> >
> > How could I get a string list of all provider installed ?
>
> Luis Miguel,
> you are correct in your observation that LINEPROVIDERLIST doesn't
contain this
> information.
> Via TAPI it is only possible to access this info for available
devices via
> LINEDEVCAPS or PHONECAPS (as you have already mentioned).
> If you want to get the info for all installed providers (whether
they actually
> expose any devices or not) I see no other option than accessing the
TSP file
> info directly.
> It is in the TSP file's VS_VERSION_INFO resource located in string
> FileDescription.
> See MSDN for details about: GetFileVersionInfoSize(),
GetFileVersionInfo(),
> and VerQueryValue().
>
> --
> Best Regards
> Andreas Marschall
> Microsoft MVP for TAPI / Windows SDK
> TAPI / TSP Developer and Tester
> http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
> * Please post all messages and replies to the newsgroup so all may
> * benefit from the discussion.  Private mail is usually not replied
to.
> * This posting is provided "AS IS" with no warranties, and confers
no rights.
>
>
>


Relevant Pages

  • Re: java.util.Properties extending from HashMap instead of HashMap
    ... It's sort of useless to speculate why Sun did that, since everyone over there admits it was a mistake for Properties to inherit from Hashtable. ... Given the simplicity of the code fix, plus the ability to compile using "-source 1.4" until the source can be corrected, I would bet that Sun would consider the benefit of additional error checking to outweigh the inconvenience of source changes during the developer's transition to Java 5. ... You cannot make conclusions about how to use Provider based on Properties' documentation, and you cannot make conclusions about Properties based on Hashtable's documentation. ... either an or a <String, String> version, and the parameters are never cast - the raw type accepts Objects only. ...
    (comp.lang.java.programmer)
  • Re: Custom membership provider problem
    ... user wizard and someone said I should switch to custom membership provider. ... >>An error has occurred while establishing a connection to the server. ... >>Boolean& failoverDemandDone, String host, String failoverPartner, String ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Can ASP.NET 2.0 Use SQLServer 2000 For Membership Function
    ... from the IIS admin tool (setting the conn string and membership provider) ... with a sql 2000 database in the back and IE7 ... that the Web App Admin Tool shows when it cannot connect to the database. ... Create a connection string to your ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: msdasql default provider
    ... string without a provider specified, ... would be changing the connection string in use by code, ... The reason an ADO Connection String accepts a "default" ... OLE DB interface for ADO, and assumes an ODBC interface to the datasource.. ...
    (microsoft.public.data.ado)
  • Re: msdasql default provider
    ... string without a provider specified, ... would be changing the connection string in use by code, ... The reason an ADO Connection String accepts a "default" ... OLE DB interface for ADO, and assumes an ODBC interface to the datasource. ...
    (microsoft.public.data.ado)