Get country list under windows 95

Dear all,

Control Panel  >> Modems >> General >> Dialing Properties >> I am in this

For above setting, I can get it in registry under key
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Telephony\Country List in
Windows 98, but how do I get the same settings in Windows 95?

Thanks for any help.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

you should use the linegetcountry api for this to work on all windows versions:

there is example here:

you will probably need a tapi unit for this unless you already have one ,if not i suggest:

Regards Barry

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
there is the same key, but u must have the model installed
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

lurcAuthor Commented:

But I cannot get file at, can you send me directly by E-mail? Thanks.


sorry the delphi super page site is still down for upgrading but yes i send you the tapi file i have it installed also.
leave your email address
or send a mail to
and i reply with component.

oh here it is

i give the page instead of link as some other interesting bits thee you may be interested in. is about 4th down
Regards Barry
got your email and i have emailed you back the d_tapi and tested it with the example i linked to .
it worked great ..did you get errors?

lurcAuthor Commented:
E-mail has received, thanks.

There is an exception prompted in the process, I am trying to find the reason.
lurcAuthor Commented:
It works, thanks.

But I still have two questions, please help me out.

1. Does this program require modem installed on running PC?

2. Except one successfully running PC, a warning appears as I run it.
'Range check error.'

After debugging, I find the exception is raised at this position

// Now enumerate through all...
for CountryIter := 0 to  List^...
   with ListView1.Items.Add do
       Caption := ... <= here

First round, it is normal and gets out the first country, but second, the warning is prompted out.

Thanks in advance.

1: linegetcountry is a api call so a modem has nothing to do with it..

2: sorry i dont understand the error ,i didnt get any at all when i tried it.

maybe put where the error occurs in a

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.