Re: getting provider list

From: Luis Miguel (lm.rodriguez_at_ya.com)
Date: 10/06/04


Date: 6 Oct 2004 00:45:12 -0700

Grant,
I know lineGetID call, but I need to know the string names of all TSP installed
on the system before opens any line.
Andreas solved my problem.

Thanks.

----
Luis Miguel Rodriguez
Polytechnic University of Cartagena
Spain
"Grant Schenck" <schenckg@optonline.net> wrote in message news:<ub$GFfiqEHA.2588@TK2MSFTNGP12.phx.gbl>...
> 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: Custom Membership Provider
    ... public override bool RequiresQuestionAndAnswer ... I have tried the following with my provider but still get the same result. ... public override bool ChangePasswordQuestionAndAnswer(string username, ... I don't know what your derived MembershipProvider class looks like, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: finding how much the file system is full, from a C program?
    ... If string is a null pointer, the system function determines whether the host ... The fopen function opens the file whose name is the string pointed to by filename, and associates a stream with it. ... wb truncate to zero length or create binary file for writing ...
    (comp.lang.c)