Solved

tapiGetLocationInfo - where's the tapiSETLocatonInfo?

Posted on 1998-04-02
4
244 Views
Last Modified: 2013-12-03
in short: I can use TAPI to GET the location of a user, but I can't SET it via API. I can't believe this. M$ provides app-programmers with a common thingie to do something, but it appears to be a one-way street (again).

if it IS, then I'll dump this tapiGetLocationInfo entirely and have my program store this information itself. But I'd prefer to use TAPI, if I can set the location aswell.

anyone who can provide me with all the info I need to do it via API can have the points raised to 200, with an A grade.
Anyone who can tell me that M$ sucks and that they don't provide a way to do what I want can have the current ammount of points with a A-grade.
0
Comment
Question by:lowlevel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 11

Expert Comment

by:alexo
ID: 1412502
You're spending 100 points just to get a confirmation that MS sucks?
Hell, I'll tell you that for free, anytime.
0
 
LVL 1

Author Comment

by:lowlevel
ID: 1412503
true :)
but it at least saves me the time of going through all their propaganda at premium.microsoft.com/msdn/library and figure it out for myself.
0
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 100 total points
ID: 1412504
There's no public way. However, I have found out that in tapi32.dll, there are approximately 4 functions that deal with the location information:

  internalConfig
  internalNewLocationW
  internalRemoveLocation
  internalRemoveLocationW

However, since these aren't documented, I don't know what parameters they take. I know that telephon.cpl (the control panel) uses internalConfig, but strangely enough, it doesn't use internalRemoveLocation.... Hmmm.

0
 
LVL 15

Expert Comment

by:Tommy Hui
ID: 1412505
Looking at the registry, it appears you do not have to bother with the above API. You can find the information about locations at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Telephony\Locations

Underneath this key, there's a series of LocationXXX keys that contain information about that location: Area Code, Country, DisableCallWaiting, Flags, ID, LongDistanceAccess, Name, OutsideAccess, TollList.


0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

634 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question