Re: conflicting dwPermanentLineID

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



"Eric" <bauersachs@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:c1e62$445b48e9$3e026d5a$25228@xxxxxxxxxxxxxxxxxx
Hi Andreas
Thanks for your answer.

Eric, you are welcome.

Have you got more information about that
recommendation? This is what I was searching for. I cannot find anything on
the internet or on Microsoft's site about this.

Sorry, not by now.
I searched ATSP32 sample TSP but it doesn't fill in dwPermanentLineID at all.

I'm using this mechanism in my TSPs so there must have been a reason / source
for this,
but this basic stuff was implemented a couple of years ago...

I'll keep you updated if there is any news on this.
Maybe Grant remembers something regarding this algorithm?


If the high word was dwPermanentProviderID then of course no other provider
could generate an identical number.
Is dwPermanentProviderID guaranteed to be below 0x10000, i.e. to fit into
the upper WORD of dwPermanentLineID?

Garanteed? No!
But practically: yes.
The dwPermanentProviderID is assigned by the OS/TAPISRV beginning with 1 for
the 1st provider ever installed.
Each new TSP installation (including remove and re-install) will increase this
counter by one.
IDs once assigned will never be re-used.
You can see this in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Telephony\Provide
rs\NextProviderID
So if you don't (re-)install more than 65535 TSPs then the WORD limit won't
exceed.


This recommendation would also mean that my DB-ID must always be below
0x10000

Correct.

, which is currently not the case. But I think I can change this somehow.

You just need a function that maps your DB-ID's range to 0..FFFFh

--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK
TAPI / TSP Developer and Tester
My TAPI and TSPI FAQ:
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
My Toto® Tools (a collection of free, mostly TAPI related tools):
http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
TAPI development around the world (Frappr! map):
http://www.frappr.com/TAPIaroundTheWorld
* 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: Writing a TSP: Assigning Users
    ... My problem at that time was that the dwPermanentLineID was not ... > Microsoft MVP for TAPI / Windows SDK ... > * Please post all messages and replies to the newsgroup so all may ... Private mail is usually not replied to. ...
    (microsoft.public.win32.programmer.tapi)
  • Re: About .dwPermanentLineID in multiline device
    ... I regard this a TSP bug. ... The dwPermanentLineID should be unique in the system. ... TAPI / TSP Developer and Tester ... * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)
  • Re: svchost.exe: Unloaded...
    ... You need to generate a unique dwPermanentLineID. ... You need to support at least one media mode, ... TAPI / TSP Developer and Tester ... * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Using phone as microphone??
    ... After searching and searching and searching ... you cannot connect a phone and a modem directly. ... Microsoft MVP for TAPI / Windows SDK ... * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)
  • Re: conflicting dwPermanentLineID
    ... TAPI itself will not modify the dwPermanentLineID. ... this number modified by TAPI when returning it to a TAPI client? ... there really a potential conflict? ...
    (microsoft.public.win32.programmer.tapi)