⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 func2_7zeh.htm

📁 TAPI Exampple
💻 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>lineSetAppPriority</TITLE>
<SCRIPT SRC="/library/psdk/linkcss.js"></SCRIPT>
<META NAME="MS-HKWD" CONTENT="lineSetAppPriority">
<META NAME="MS-HAID" CONTENT="_tapi2_linesetapppriority">
</HEAD>
<BODY TOPMARGIN="0">

<!--TOOLBAR_START-->
<!--TOOLBAR_EXEMPT-->
<!--TOOLBAR_END-->
<!--SYNC_START-->
<script language="JavaScript" src='/library/synch.js'></script>
<!--SYNC_END-->

<H1><A NAME="_tapi2_linesetapppriority"></A>lineSetAppPriority</H1>

<P>The <B>lineSetAppPriority</B> function allows an application to set its priority in the handoff priority list for a particular media type or Assisted Telephony request mode, or to remove itself from the priority list. </P>

<PRE class=syntax><B>LONG WINAPI lineSetAppPriority(
  LPCSTR</B><I> lpszAppFilename</I><B>,                 </B>
<B>  DWORD</B><I> dwMediaMode</I><B>,                      </B>
<B>  LPLINEEXTENSIONID </B><I>lpExtensionID</I><B>,        </B>
<B>  DWORD</B><I> dwRequestMode</I><B>,                    </B>
<B>  LPCSTR</B><I> lpszExtensionName</I><B>,               </B>
<B>  DWORD</B><I> dwPriority                        </I>
<B>);</B></PRE>

<H4>Parameters</H4>

<DL>
<DT><I>lpszAppFilename</I> </DT>

<DD>A pointer to a string containing the application executable module filename (without directory information). In TAPI version 2.0 or later, the parameter can specify a filename in either long or 8.3 filename format. </DD>

<DT><I>dwMediaMode</I> </DT>

<DD>The media type for which the priority of the application is to be set. The value can be one of the <A HREF="constnts_0x6b.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/constnts_0x6b.htm">LINEMEDIAMODE_ Constants</A>; only a single bit may be on. The value zero should be used to set the application priority for Assisted Telephony requests. </DD>

<DT><I>lpExtensionID</I> </DT>

<DD>A pointer to a structure of type <A HREF="struc2_1t6a.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/struc2_1t6a.htm"><B>LINEEXTENSIONID</B></A>. This parameter is ignored. </DD>

<DT><I>dwRequestMode</I> </DT>

<DD>If the <I>dwMediaMode</I> parameter is zero, this parameter specifies the Assisted Telephony request mode for which priority is to be set. It must be either LINEREQUESTMODE_MAKECALL or LINEREQUESTMODE_MEDIACALL. This parameter is ignored if <I>dwMediaMode</I> is nonzero. </DD>

<DT><I>lpszExtensionName</I> </DT>

<DD>This parameter is ignored. </DD>

<DT><I>dwPriority</I> </DT>

<DD>The new priority for the application. If the value 0 is passed, the application is removed from the priority list for the specified media or request mode (if it was already not present, no error is generated). If the value 1 is passed, the application is inserted as the highest-priority application for the media or request mode (and removed from a lower-priority position, if it was already in the list). Any other value generates an error. 
</DD>
</DL>

<H4>Return Values</H4>

<P>Returns zero if the request succeeds or a negative error number if an error occurs. Possible return values are: </P>

<P>LINEERR_INIFILECORRUPT, LINEERR_INVALREQUESTMODE, LINEERR_INVALAPPNAME, LINEERR_NOMEM, LINEERR_INVALMEDIAMODE, LINEERR_OPERATIONFAILED, LINEERR_INVALPARAM, LINEERR_RESOURCEUNAVAIL, LINEERR_INVALPOINTER. </P>

<H4>Remarks</H4>

<P>If LINEERR_INVALMEDIAMODE is returned, the value specified in <I>dwMediaMode</I> is not zero and not one of the <A HREF="constnts_0x6b.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/constnts_0x6b.htm">LINEMEDIAMODE_ Constants</A>, or more than one bit is on in the parameter value. </P>

<P>This function updates the stored priority list. If the telephony system is initialized, it also sets the current, active priorities for applications then running; the new priority is used on the next incoming call or <A HREF="func1_6tt2.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_6tt2.htm"><B>lineHandoff</B></A> based on media type. </P>

<P>Although this is a new function that older applications would not be expected to call, for backward compatibility they should not be prevented from doing so. The function works the same way for all applications. </P>

<H4><A HREF="javascript:if(confirm('http://msdn.microsoft.com/library/psdk/sdkintro/guide_927n.htm  \n\n这个文件不能通过 Teleport Pro 取回, 因为 地址在一个域或为它的开始地址设定的边界的外部路径上.  \n\n你想从服务器打开它吗?'))window.location='http://msdn.microsoft.com/library/psdk/sdkintro/guide_927n.htm'" tppabs="http://msdn.microsoft.com/library/psdk/sdkintro/guide_927n.htm">Requirements</A> </H4>

<P><B>&nbsp;&nbsp;Windows NT/2000: </B>Requires Windows NT 4.0 SP3 or later.<BR>
<B>&nbsp;&nbsp;Windows 95/98: </B>Requires Windows 95 or later.<BR>
<B>&nbsp;&nbsp;Version: </B>Requires TAPI 1.4 or later.<BR>
<B>&nbsp;&nbsp;Header: </B>Declared in Tapi.h.<BR>
<B>&nbsp;&nbsp;Library: </B>Use Tapi32.lib.<BR>
<B>&nbsp;&nbsp;Unicode: </B>Implemented as Unicode and ANSI versions on all platforms.</P>

<H4>See Also</H4>

<P><A HREF="quickref_1okl.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/quickref_1okl.htm">TAPI 2.2 Reference Overview</A>, <A HREF="quickref_6gvn.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/quickref_6gvn.htm">Supplementary Line Service Functions</A>, <A HREF="struc2_1t6a.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/struc2_1t6a.htm"><B>LINEEXTENSIONID</B></A>, <A HREF="func1_6tt2.htm" tppabs="http://msdn.microsoft.com/library/psdk/tapi22/func1_6tt2.htm"><B>lineHandoff</B></A></P>
<DIV CLASS="footer">Built on Monday, August 14, 2000</DIV>
<!--FOOTER_START-->
<DIV CLASS="footer" STYLE="color:#000000;font-size:90%;">
<A HREF="mailto:sdkfdbk@microsoft.com">Send feedback</A> to the Platform SDK.</P>
<P><A HREF="javascript:if(confirm('http://msdn.microsoft.com/isapi/gomscom.asp?TARGET=/info/cpyright.htm  \n\n这个文件不能通过 Teleport Pro 取回, 因为 地址在一个域或为它的开始地址设定的边界的外部路径上.  \n\n你想从服务器打开它吗?'))window.location='http://msdn.microsoft.com/isapi/gomscom.asp?TARGET=/info/cpyright.htm'" tppabs="http://msdn.microsoft.com/isapi/gomscom.asp?TARGET=/info/cpyright.htm" TARGET="_top">&#169; 1999 Microsoft Corporation. All rights reserved. Terms of use.</A></P>
</DIV>
<!--FOOTER_END-->

</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -