?? intro_9dyf.htm
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML DIR="LTR"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso8859-1">
</HEAD>
<TITLE>TAPI/C Versioning</TITLE>
<SCRIPT SRC="/library/psdk/linkcss.js"></SCRIPT>
<META NAME="MS-HAID" CONTENT="_tapi2_tapi_c_versioning">
</HEAD>
<BODY TOPMARGIN="0">
<!--TOOLBAR_START-->
<!--TOOLBAR_EXEMPT-->
<!--TOOLBAR_END-->
<!--SYNC_START-->
<script language="JavaScript" src='/library/synch.js'></script>
<!--SYNC_END-->
<H2><A NAME="_tapi2_tapi_c_versioning"></A>TAPI/C Versioning</H2>
<P>Over time, different versions of TAPI, applications, and service providers may be produced. These new versions can make new definitions, such as for new features, new members in data structures, and new bit fields. Version numbers are therefore necessary to indicate how to interpret various data structures.</P>
<P>To allow optimal interoperability of different versions of applications, versions of TAPI itself, and versions of service providers by different vendors, Microsoft Telephony provides a simple version negotiation mechanism for applications. There are two different versions that TAPI and the telephony service provider need to agree on for each line device. The first is the version negotiated with TAPI and the telephony service provider (TSP) Basic and Supplementary Telephony, referred to as the TAPI interface version. The other is for provider-specific extensions, if any, and is referred to as the extension version. The format of the data structures and data types used by TAPI's Basic and Supplementary features is defined by the TAPI version, while the extension version determines the format of data structures defined by the vendor-specific extensions.</P>
<P>The <A HREF="func2_9kxa.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_9kxa.htm"><B>lineNegotiateAPIVersion</B></A> function negotiates a TAPI version and <A HREF="func2_3p66.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func2_3p66.htm"><B>lineNegotiateExtVersion</B></A> negotiates the TSP extension version. A single TSP could be capable of handling more than one version, and an application must "fall back" to using an older version if using an older TSP. In <B>lineNegotiateAPIVersion,</B> the <I>dwApiVersion</I> parameter defaults to a value according to version, as follows.</P>
<TABLE>
<TR VALIGN="top">
<TH align=left width=28%>TAPI<BR>
version</TH>
<TH align=left width=72%><I>dwApiVersion</I><BR>
default value</TH>
</TR>
<TR VALIGN="top">
<TD width=28%>1.3</TD>
<TD width=72%>0x00010003</TD>
</TR>
<TR VALIGN="top">
<TD width=28%>1.4</TD>
<TD width=72%>0x00010004</TD>
</TR>
<TR VALIGN="top">
<TD width=28%>2.0</TD>
<TD width=72%>0x00020000</TD>
</TR>
<TR VALIGN="top">
<TD width=28%>2.1</TD>
<TD width=72%>0x00020001</TD>
</TR>
<TR VALIGN="top">
<TD width=28%>2.2</TD>
<TD width=72%>0x00020002</TD>
</TR>
</TABLE><BR>
<P>However, TAPI makes this much easier as long as the TSP itself is using a newer version than the application. If the TSP is indeed newer, then TAPI is capable of translating "down" to the application's version. For example, TAPI 2.0 TSPs do not need to be specifically capable of dealing with TAPI version 1.4. If a TAPI 1.4 application is run, TAPI converts all TAPI 2.0 structures and messages into TAPI 1.4 equivalents, or as close as possible. If there is no close approximation in TAPI 1.4, then all TAPI 2.0-specific information will be lost. </P>
<P>The precise meaning of an extension version is provider-specific. To use a TSP that supports extensions, consult the provider's documentation.</P>
<P>There are a number of versions of TAPI. While most of these versions involved changes to the TAPI and Telephony Service Provider Interface (TSPI) documentation sets, there are other implications for each version, namely, architectural differences, operating system variations, redistributables, and TSP development issues.</P>
<TABLE>
<TR VALIGN="top">
<TH align=left width=25%>TAPI version</TH>
<TH align=left width=75%>Supported platforms</TH>
</TR>
<TR VALIGN="top">
<TD width=25%>1.0
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -