What is the best way to get the TAPI version and additional TAPI information with C#?
2 Answers
Interop.
Use the lpdwAPIVersion parameter of the lineInitializeEx function. http://msdn.microsoft.com/en-us/library/ms735983(VS.85).aspx
"Upon successful completion of this request, this location is filled with the highest API version supported by TAPI, thereby allowing the application to detect and adapt to having been installed on a system with a different version of TAPI."
You're going to have to start plugging away with Interop calls sooner or later when you're programming TAPI.

- 5,814
- 4
- 35
- 49
There are also some great libraries and controls (for example a set of ActiveX controls) that can make TAPI programming extremely easy. Dealing with API level code, PInvoke, callbacks, etc. can be very tedious. You can do a quick online search and see if one of those options would work for you.

- 41
- 1
- 10