Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Location of dialing properties in the Windows Registry
Message
De
27/05/1999 15:47:53
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00222685
Message ID:
00223664
Vues:
28
>>Does anyone know where the dialing properties are located in the
>>registry for windows '95? Specifically I'm looking for where the local areacode and the prefix needed to get an outside line for a local and long distance call are stored.
>
>This is from NT's registry but it should work for 95 also.
>
>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Telephony\Locations
>Under this key you will find a sub key for each location defined. These will be named Location0, Location1, ... The value name CurrentID under the Locations key will let you determine which LocationN sub key is currently being used by comparing the data in value name ID LocationN to see if it matches CurrentID (on my system 1 = Location0 2=Location1 but I don't know if this is always true) Once you've determined the correct LocationN sub key the following value names will give you what you want.
>
>AreaCode
>LongDistanceAccess
>OutsideAccess

Thanks Steve.
Actually, I found out from msdn online that under '95 the dialing properties are stored in the TELEPHON.INI file instead of in the registry, for backwards compatability with 16bit apps. Which probably explains why its since been moved to the registry under NT.

Mark S.
"The most beautiful experience we can have is the mysterious ; it is the fundamental emotion which stands at the cradle of true art and true science." - Albert Einstein
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform