>Mabry's RAS control requires the full name and path of the phonebook, ?.pbk located in the Windows NT \system32 directory.
>
>NT can be loaded on drives other than C:, the directory can be named differently, ie: x:\WinNT\system32, x:\WinNT35\system32, etc.
>
>I need the full file name and the path of the phone book located in the system32 directory.
>
>According to Mabry - I should check the registry for the location. I had one person look it up in the following location and found this:
>
>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\RAS\CurrentVersion. The value to read is PathName.
>%system32%\ras
>
>Mabry says the default phone book is called 'RASPhone.pbk' but that is not always true as in the above registry setting.
>
>Any help on going about this?
Robert,
If you're simply looking to find the system directory, check out my INI files class available in the download section (Win32 and other APIs). It'll give you the information you need.
hth,
George
Ubi caritas et amor, deus ibi est