Solved

tapiGetLocationInfo - where's the tapiSETLocatonInfo?

Posted on 1998-04-02
4
242 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
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…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

751 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